Fix urlparse for py3.
This commit is contained in:
parent
f37bad0e00
commit
0dda687762
3 changed files with 2 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue