Skip to content

Commit

Permalink
always use urllib.parse, Python2 is no more
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 19, 2024
1 parent 216dc7e commit b0500f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions apypie/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions apypie/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b0500f5

Please sign in to comment.