Skip to content

Commit fad5467

Browse files
committed
Clean up imports
1 parent 14f2c58 commit fad5467

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

textile/functions.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
import re
2222
import uuid
2323
from sys import maxunicode, version_info
24+
from collections import OrderedDict
25+
26+
from textile.tools import sanitizer, imagesize
2427

2528

2629
try:
@@ -36,15 +39,6 @@
3639
from urlparse import urlparse, urlsplit, urlunsplit
3740
from HTMLParser import HTMLParser
3841

39-
from textile.tools import sanitizer, imagesize
40-
41-
# 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-
4842

4943
def _normalize_newlines(string):
5044
out = string.strip()

0 commit comments

Comments
 (0)