8000 Add back support for Python 2.6 by BPScott · Pull Request #626 · cloudtools/troposphere · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add back support for Python 2.6 #626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 26, 2016
Merged

Add back support for Python 2.6 #626

merged 1 commit into from
Dec 26, 2016

Conversation

BPScott
Copy link
Contributor
@BPScott BPScott commented Dec 15, 2016

The use of dictionary comprehension in #468 caused support for Python
2.6 to be dropped. This change converts these comprehensions to use
simple iteration.

See b8a6dae for a prior example of dictionary comprehensions breaking support. This fix was modeled after that commit. As per that commit the test suite does not run in Python 2.6, however I have tested that pycodestyle . and pyflakes . both pass when running using python2.6.6 and the unit tests pass when using 2.7.11.

Potentially Travis could be configured to run pycodestyle and pyflakes under python 2.6 to help with the "best effort" support so even if the unit tests can't run it'll help spot compilation errors but that's a discussion for another day.

(Oh I'm using python2.6 rather than upgrading because I'm still stuck on CentOS 6 for some things)

The use of dictionary comprehension in #468 caused support for Python
2.6 to be dropped. This change converts these comprehensions to use
simple iteration.
@markpeek markpeek merged commit c4dae13 into cloudtools:master Dec 26, 2016
@markpeek
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0