Skip to content

Drop support for Python 2.6 #356

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 2 commits into from
Nov 7, 2017
Merged

Drop support for Python 2.6 #356

merged 2 commits into from
Nov 7, 2017

Conversation

willkg
Copy link
Contributor

@willkg willkg commented Nov 6, 2017

Fixes #330

@willkg willkg added this to the 1.0 milestone Nov 6, 2017
@@ -13,7 +13,6 @@ def keys(self, prefix=None):
if prefix is None:
return set(keys)

# Python 2.6: no set comprehensions
return set([x for x in keys if x.startswith(prefix)])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops--meant to convert this to set comprehension syntax. Will do now.

@willkg
Copy link
Contributor Author

willkg commented Nov 7, 2017

@gsnedders @jgraham Can someone review this? The changes involve:

  • removing usage of the ordereddict library
  • switch to using set comprehension syntax
  • removing Python 2.6 and related bits from test environments
  • updating documentation about Python 2.6 support

@gsnedders gsnedders merged commit 5f637af into html5lib:master Nov 7, 2017
@willkg
Copy link
Contributor Author

willkg commented Nov 7, 2017

Thank you!

@willkg willkg deleted the 330-drop-python-26 branch December 4, 2017 14:03
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