Skip to content

Commit

Permalink
change type() to isinstance()
Browse files Browse the repository at this point in the history
  • Loading branch information
flipmcf committed Nov 23, 2016
1 parent b4a5c62 commit 24665e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZTUtils/Zope.py
Expand Up @@ -204,7 +204,7 @@ def make_query(*args, **kwargs):
qlist = complex_marshal(list(d.items()))
for i in range(len(qlist)):
k, m, v = qlist[i]
if type(v) == unicode:
if isinstance(v, unicode):
v = v.encode(_default_encoding())
qlist[i] = '%s%s=%s' % (quote(k), m, quote(str(v)))

Expand Down

0 comments on commit 24665e6

Please sign in to comment.