diff options
| author | Ian Bicking <ianb@colorstudy.com> | 2010-11-12 12:52:32 -0600 |
|---|---|---|
| committer | Ian Bicking <ianb@colorstudy.com> | 2010-11-12 12:52:32 -0600 |
| commit | 9855a771b9fb22a74bc06f331128d339dacf81dd (patch) | |
| tree | 3f7110cc518b9b765feb4a6f66e7d6e2adf8e2a2 /webtest/__init__.py | |
| parent | 61ee398c0997f4e35a57202d651e138a19e873c6 (diff) | |
| download | webtest-9855a771b9fb22a74bc06f331128d339dacf81dd.tar.gz | |
Fix #12, use doseq=True with all urlencode calls
Diffstat (limited to 'webtest/__init__.py')
| -rw-r--r-- | webtest/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webtest/__init__.py b/webtest/__init__.py index 6a68013..ae6086e 100644 --- a/webtest/__init__.py +++ b/webtest/__init__.py @@ -164,9 +164,9 @@ class TestApp(object): environ = self._make_environ(extra_environ) # @@: Should this be all non-strings? if isinstance(params, (list, tuple, dict)): - params = urllib.urlencode(params) + params = urllib.urlencode(params, doseq=True) if hasattr(params, 'items'): - params = urllib.urlencode(params.items()) + params = urllib.urlencode(params.items(), doseq=True) if upload_files: params = cgi.parse_qsl(params, keep_blank_values=True) content_type, params = self.encode_multipart( |
