diff --git a/apypie/api.py b/apypie/api.py index d210a5a..a708d87 100644 --- a/apypie/api.py +++ b/apypie/api.py @@ -12,10 +12,7 @@ except ImportError: JSONDecodeError = ValueError # type: ignore import os -try: - from urlparse import urljoin # type: ignore -except ImportError: - from urllib.parse import urljoin # type: ignore +from urllib.parse import urljoin # type: ignore import requests from apypie.resource import Resource diff --git a/apypie/route.py b/apypie/route.py index 384cc6b..d48cd61 100644 --- a/apypie/route.py +++ b/apypie/route.py @@ -4,10 +4,7 @@ from __future__ import print_function, absolute_import -try: - from urllib.parse import quote # type: ignore -except ImportError: - from urllib import quote # type: ignore +from urllib.parse import quote # type: ignore from typing import List, Optional # pylint: disable=unused-import