Skip to content

Commit

Permalink
urlparse is renamed to urllib.parse in py3
Browse files Browse the repository at this point in the history
This should now work in Python 2.7+
  • Loading branch information
pigmonkey committed Apr 30, 2019
1 parent 3e01a1c commit 8b980ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fancy_cache/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
)
from six import string_types, callable
from six.moves.urllib.parse import urlencode
from urlparse import parse_qs
try:
from urllib.parse import parse_qs
except ImportError:
from urlparse import parse_qs

from fancy_cache.utils import md5

Expand Down

0 comments on commit 8b980ce

Please sign in to comment.