Skip to content

Commit

Permalink
remove more py26-specific code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirudennis committed Nov 15, 2017
1 parent 5ac14d3 commit 0c7c367
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
9 changes: 0 additions & 9 deletions textile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,3 @@
__all__ = ['textile', 'textile_restricted']

__version__ = VERSION


if sys.version_info[:2] == (2, 6):
warnings.warn(
"Python 2.6 is no longer supported by the Python core team, please "
"upgrade your Python. A future version of textile will drop support "
"for Python 2.6",
DeprecationWarning
)
5 changes: 1 addition & 4 deletions textile/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@
from textile.objects import Block, Table


try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
from collections import OrderedDict


try:
Expand Down
5 changes: 1 addition & 4 deletions textile/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
urlparse = urllib.parse.urlparse
HTMLParser = html_parser.HTMLParser

try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
from collections import OrderedDict

from xml.etree import ElementTree

Expand Down

0 comments on commit 0c7c367

Please sign in to comment.