We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68720c5 commit cad1b19Copy full SHA for cad1b19
1 file changed
textile/functions.py
@@ -27,12 +27,9 @@
27
28
from textile.tools import sanitizer, imagesize
29
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
+# We're going to use the Python 2.7+ OrderedDict data type. This has been
+# included in textile.tools since it won't be available on Python 2.6
+from textile.tools import OrderedDict
36
37
38
def _normalize_newlines(string):
0 commit comments