Don't try and import an old version and then fail back to the 2.7 version. Just do the 2.7 version. :)
This commit is contained in:
@@ -12,10 +12,7 @@ import config
|
|||||||
from service.pycrest.compat import bytes_, text_
|
from service.pycrest.compat import bytes_, text_
|
||||||
from service.pycrest.errors import APIException
|
from service.pycrest.errors import APIException
|
||||||
|
|
||||||
try:
|
from urlparse import urlparse, urlunparse, parse_qsl
|
||||||
from urllib.parse import urlparse, urlunparse, parse_qsl
|
|
||||||
except ImportError: # pragma: no cover
|
|
||||||
from urlparse import urlparse, urlunparse, parse_qsl
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pickle
|
import pickle
|
||||||
|
|||||||
Reference in New Issue
Block a user