diff options
author | Florian Weimer <fw@deneb.enyo.de> | 2013-05-28 18:56:07 +0000 |
---|---|---|
committer | Florian Weimer <fw@deneb.enyo.de> | 2013-05-28 18:56:07 +0000 |
commit | 529389a6939f9ddb0cbf0d974ab4c3e22958b06a (patch) | |
tree | 26994fcd6d558b54fab2023d512276d2e6c5748c /lib | |
parent | a01a2a6418fd5cadb267851d0a7fdf98549ee2fb (diff) |
web_support.URLFactory._convertArgs: correct thinko
We need to skip wrapping for lists and tuples, but wrap string and
unicode objects.
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@22386 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/web_support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/web_support.py b/lib/python/web_support.py index aea8400036..95525427c5 100644 --- a/lib/python/web_support.py +++ b/lib/python/web_support.py @@ -163,7 +163,7 @@ class URLFactory: for (key, value) in args.items(): if value is None: continue - if type(value) not in (types.ListType, types.StringType): + if type(value) not in (types.ListType, types.TupleType): value = (value,) for v in value: arglist.append("%s=%s" % (urllib.quote(key), |