Skip to content

Commit 9d90ba0

Browse files
committed
py3k
1 parent ace99ae commit 9d90ba0

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

documentcloud/documents.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import re
1010
import warnings
1111
from functools import partial
12+
from urllib.parse import urlparse
1213

1314
# Third Party
1415
from requests.exceptions import RequestException
@@ -23,13 +24,6 @@
2324
from .toolbox import grouper, is_url, merge_dicts, requests_retry_session
2425
from .users import User
2526

26-
try:
27-
# Standard Library
28-
from urllib.parse import urlparse
29-
except ImportError:
30-
# Third Party
31-
from urlparse import urlparse
32-
3327
logger = logging.getLogger("documentcloud")
3428

3529
IMAGE_SIZES = ["thumbnail", "small", "normal", "large", "xlarge"]

0 commit comments

Comments
 (0)