Fix urlparse for py3.

This commit is contained in:
Steve Pulec 2017-02-23 21:41:05 -05:00
parent f37bad0e00
commit 0dda687762
3 changed files with 2 additions and 7 deletions

View File

@ -3,8 +3,3 @@ try:
except ImportError:
# python 2.6 or earlier, use backport
from ordereddict import OrderedDict # flake8: noqa
try:
from urlparse import urlparse # flake8: noqa
except ImportError:
from urllib.parse import urlparse # flake8: noqa

View File

@ -6,7 +6,7 @@ from functools import wraps
import pytz
from moto.compat import urlparse
from six.moves.urllib.parse import urlparse
from moto.core.responses import AWSServiceSpec
from moto.core.responses import BaseResponse
from moto.core.responses import xml_to_json_response

View File

@ -1,7 +1,7 @@
from __future__ import unicode_literals
import datetime
import json
from urlparse import urlparse
from six.moves.urllib.parse import urlparse
from moto.core.responses import BaseResponse