[Secure-testing-commits] r22386 - lib/python
Florian Weimer
fw at alioth.debian.org
Tue May 28 18:56:07 UTC 2013
Author: fw
Date: 2013-05-28 18:56:07 +0000 (Tue, 28 May 2013)
New Revision: 22386
Modified:
lib/python/web_support.py
Log:
web_support.URLFactory._convertArgs: correct thinko
We need to skip wrapping for lists and tuples, but wrap string and
unicode objects.
Modified: lib/python/web_support.py
===================================================================
--- lib/python/web_support.py 2013-05-28 17:16:57 UTC (rev 22385)
+++ lib/python/web_support.py 2013-05-28 18:56:07 UTC (rev 22386)
@@ -163,7 +163,7 @@
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),
More information about the Secure-testing-commits
mailing list