summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-04-23 15:04:01 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-04-23 15:04:01 (GMT)
commit4bb08f8d7c05def3dd45e4bae697a01c13039b13 (patch)
tree18b07a1f823212e9f922db6d711c39210ae7e4d6
parentc136f67de69a69f0e161931825512bc1c3cc6ebe (diff)
downloadmandaye-master.zip
mandaye-master.tar.gz
mandaye-master.tar.bz2
fix use of isinstanceHEADv0.11.7master
-rw-r--r--mandaye/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mandaye/server.py b/mandaye/server.py
index fcbcd0e..67a209f 100644
--- a/mandaye/server.py
+++ b/mandaye/server.py
@@ -77,7 +77,7 @@ def strize(v):
'''Flatten unicode strings to str encoded as UTF-8'''
if isinstance(v, unicode):
return v.encode('utf-8')
- if isinstance(v, [list, tuple]):
+ if isinstance(v, (list, tuple)):
return type(v)([strize(e) for e in v])
if isinstance(v, dict):
return dict((strize(k), strize(e)) for k, e in v.iteritems())