<div>Hi all,</div><div><br></div><div>We're deploying trove with python 2.6 in production. And the latest code from https://review.openstack.org/#/c/191859 has broken the compatible with python 2.6.</div><div><br></div><div>The actual code which causes it is in trove/guestagent/common/operating_system.py and looks like thest. Python 2.6 has syntax error for this "list" expression.</div><div><br></div><div><div>def list_files_in_directory(root_dir, recursive=False, pattern=None):</div><div>    return {os.path.abspath(os.path.join(root, name))</div><div>            for (root, _, files) in os.walk(root_dir, topdown=True)</div><div>            if recursive or (root == root_dir)</div><div>            for name in files</div><div>            if not pattern or re.match(pattern, name)}</div></div><div><br></div><div>It would be great for anyone to fix it for both python 2.6 and 2.7, right?</div><div><br></div><div>- tobe</div><div><tincludetail></tincludetail></div><!--<![endif]-->