We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf4a6773 commit5f637afCopy full SHA for 5f637af
.travis.yml
@@ -1,6 +1,5 @@
1
language:python
2
python:
3
- -"2.6"
4
-"2.7"
5
-"3.3"
6
-"3.4"
README.rst
@@ -90,7 +90,7 @@ More documentation is available at https://html5lib.readthedocs.io/.
90
Installation
91
------------
92
93
-html5lib works on CPython 2.6+, CPython 3.3+ and PyPy. To install it,
+html5lib works on CPython 2.7+, CPython 3.3+ and PyPy. To install it,
94
use:
95
96
..code-block::bash
@@ -128,8 +128,7 @@ Tests
128
-----
129
130
Unit tests require the ``pytest`` and ``mock`` libraries and can be
131
-run using the ``py.test`` command in the root directory;
132
-``ordereddict`` is required under Python 2.6. All should pass.
+run using the ``py.test`` command in the root directory.
133
134
Test data are contained in a separate `html5lib-tests
135
<https://github.com/html5lib/html5lib-tests>`_ repository and included
html5lib/_trie/_base.py
@@ -13,8 +13,7 @@ def keys(self, prefix=None):
13
ifprefixisNone:
14
returnset(keys)
15
16
-# Python 2.6: no set comprehensions
17
-returnset([xforxinkeysifx.startswith(prefix)])
+return {xforxinkeysifx.startswith(prefix)}
18
19
defhas_keys_with_prefix(self,prefix):
20
forkeyinself.keys():
html5lib/filters/alphabeticalattributes.py
@@ -2,10 +2,7 @@
from .importbase
-try:
-fromcollectionsimportOrderedDict
7
-exceptImportError:
8
-fromordereddictimportOrderedDict
+fromcollectionsimportOrderedDict
9
10
11
def_attr_key(attr):
html5lib/html5parser.py
@@ -2,11 +2,7 @@
fromsiximportwith_metaclass,viewkeys,PY3
importtypes
-
from .import_inputstream
12
from .import_tokenizer
html5lib/tests/test_alphabeticalattributes.py
@@ -1,9 +1,6 @@
from __future__importabsolute_import,division,unicode_literals
importpytest
html5lib/treewalkers/etree.py
@@ -1,13 +1,6 @@
-OrderedDict=dict
importre
fromsiximportstring_types
requirements.txt
@@ -1,3 +1,2 @@
six>=1.9
webencodings
-ordereddict ;python_version<'2.7'
setup.py
@@ -64,7 +64,6 @@ def default_environment():
64
'Operating System :: OS Independent',
65
'Programming Language :: Python',
66
'Programming Language :: Python :: 2',
67
-'Programming Language :: Python :: 2.6',
68
'Programming Language :: Python :: 2.7',
69
'Programming Language :: Python :: 3',
70
'Programming Language :: Python :: 3.3',
@@ -107,10 +106,6 @@ def default_environment():
107
106
'webencodings',
108
],
109
extras_require={
110
-# A empty extra that only has a conditional marker will be
111
-# unconditonally installed when the condition matches.
112
-":python_version == '2.6'": ["ordereddict"],
113
114
# A conditional extra will only install these items when the extra is
115
# requested and the condition matches.
116
"datrie:platform_python_implementation == 'CPython'": ["datrie"],
tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = {py26,py27,py33,py34,py35,py36,pypy}-{base,optional}
+envlist = {py27,py33,py34,py35,py36,pypy}-{base,optional}
[testenv]
deps =
@@ -9,7 +9,6 @@ deps =
mock
base: six
base: webencodings
- py26-base: ordereddict
optional: -r{toxinidir}/requirements-optional.txt
doc: Sphinx