diff options
| author | ianb <devnull@localhost> | 2008-02-17 18:04:00 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2008-02-17 18:04:00 +0000 |
| commit | b9be324ff757065d8ff7c2eb7a6ac8fbb49fe842 (patch) | |
| tree | a9b157bc88feac5c44abca337efc3250374ea599 /webtest | |
| parent | 871e7b0185ec007d1422dd8935b84398d1fb951a (diff) | |
| download | webtest-b9be324ff757065d8ff7c2eb7a6ac8fbb49fe842.tar.gz | |
fix problem with params
Diffstat (limited to 'webtest')
| -rw-r--r-- | webtest/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webtest/__init__.py b/webtest/__init__.py index ee16c1f..e4cc1f2 100644 --- a/webtest/__init__.py +++ b/webtest/__init__.py @@ -157,6 +157,8 @@ class TestApp(object): # @@: Should this be all non-strings? if isinstance(params, (list, tuple, dict)): params = urllib.urlencode(params) + if hasattr(params, 'items'): + params = urllib.urlencode(params.items()) if upload_files: params = cgi.parse_qsl(params, keep_blank_values=True) content_type, params = self.encode_multipart( |
