Skip to content

Commit cad1b19

Browse files
committed
Clean up imports
1 parent 68720c5 commit cad1b19

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

textile/functions.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,9 @@
2727

2828
from textile.tools import sanitizer, imagesize
2929

30-
# We're going to use the Python 2.7+ OrderedDict data type. Import it if it's
31-
# available, otherwise, use the included tool.
32-
try:
33-
from collections import OrderedDict
34-
except ImportError:
35-
from textile.tools import OrderedDict
30+
# We're going to use the Python 2.7+ OrderedDict data type. This has been
31+
# included in textile.tools since it won't be available on Python 2.6
32+
from textile.tools import OrderedDict
3633

3734

3835
def _normalize_newlines(string):

0 commit comments

Comments
 (0)