Skip to content

Commit

Permalink
BUG: quoteplus is not PY3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
y-p committed Feb 1, 2014
1 parent 96ecae8 commit 7ec8d84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iron_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
try:
str_type = basestring
int_types = (int, long)
quote_plus = urllib.quote_plus
except NameError:
# PY3
str_type = str
int_types = (int,)
quote_plus = urllib.parse.quote_plus

class Item:
cache = None
Expand Down

0 comments on commit 7ec8d84

Please sign in to comment.