Skip to content

Drop support for Python 2.6#356

Merged
gsnedders merged 2 commits into
html5lib:masterfrom
willkg:330-drop-python-26
Nov 7, 2017
Merged

Drop support for Python 2.6#356
gsnedders merged 2 commits into
html5lib:masterfrom
willkg:330-drop-python-26

Conversation

@willkg

@willkg willkg commented Nov 6, 2017

Copy link
Copy Markdown
Contributor

Fixes #330

@willkg willkg added this to the 1.0 milestone Nov 6, 2017
Comment thread html5lib/_trie/_base.py Outdated
return set(keys)

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

Copy link
Copy Markdown
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

willkg commented Nov 7, 2017

Copy link
Copy Markdown
Contributor Author

@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

willkg commented Nov 7, 2017

Copy link
Copy Markdown
Contributor Author

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