We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14f2c58 commit fad5467Copy full SHA for fad5467
1 file changed
textile/functions.py
@@ -21,6 +21,9 @@
21
import re
22
import uuid
23
from sys import maxunicode, version_info
24
+from collections import OrderedDict
25
+
26
+from textile.tools import sanitizer, imagesize
27
28
29
try:
@@ -36,15 +39,6 @@
36
39
from urlparse import urlparse, urlsplit, urlunsplit
37
40
from HTMLParser import HTMLParser
38
41
-from textile.tools import sanitizer, imagesize
-
-# We're going to use the Python 2.7+ OrderedDict data type. Import it if it's
42
-# available, otherwise, use the included tool.
43
-try:
44
- from collections import OrderedDict
45
-except ImportError:
46
- from textile.tools import OrderedDict
47
48
49
def _normalize_newlines(string):
50
out = string.strip()
0 commit comments