Skip to content

Commit 0c7c367

Browse files
committed
remove more py26-specific code.
1 parent 5ac14d3 commit 0c7c367

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

textile/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,3 @@
99
__all__ = ['textile', 'textile_restricted']
1010

1111
__version__ = VERSION
12-
13-
14-
if sys.version_info[:2] == (2, 6):
15-
warnings.warn(
16-
"Python 2.6 is no longer supported by the Python core team, please "
17-
"upgrade your Python. A future version of textile will drop support "
18-
"for Python 2.6",
19-
DeprecationWarning
20-
)

textile/core.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@
3232
from textile.objects import Block, Table
3333

3434

35-
try:
36-
from collections import OrderedDict
37-
except ImportError:
38-
from ordereddict import OrderedDict
35+
from collections import OrderedDict
3936

4037

4138
try:

textile/utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
urlparse = urllib.parse.urlparse
1111
HTMLParser = html_parser.HTMLParser
1212

13-
try:
14-
from collections import OrderedDict
15-
except ImportError:
16-
from ordereddict import OrderedDict
13+
from collections import OrderedDict
1714

1815
from xml.etree import ElementTree
1916

0 commit comments

Comments
 (0)