Skip to content

Commit

Permalink
fix: urllib.parse 需要兼容 py3
Browse files Browse the repository at this point in the history
  • Loading branch information
dodoru committed Oct 25, 2017
1 parent 8f3af5e commit e63ce91
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/alipay/__init__.py
Expand Up @@ -9,12 +9,21 @@
import six
import requests
from pytz import timezone
from six.moves.urllib.parse import (
parse_qs,
urlparse,
unquote,
urlencode
)

if six.PY3:
from urllib.parse import (
parse_qs,
urlparse,
unquote,
urlencode
)
else:
from six.moves.urllib.parse import (
parse_qs,
urlparse,
unquote,
urlencode
)

from .exceptions import MissingParameter
from .exceptions import ParameterValueError
Expand Down

0 comments on commit e63ce91

Please sign in to comment.