diff options
| author | Gael Pasgrimaud <gael@gawel.org> | 2014-04-16 21:41:36 +0200 |
|---|---|---|
| committer | Gael Pasgrimaud <gael@gawel.org> | 2014-04-16 21:42:19 +0200 |
| commit | 7e5e556d3d1830813446b2bf055a615e1675a48b (patch) | |
| tree | 5d0daa208ec448674d503025b23b383d3898600d /webtest | |
| parent | 9a51912f4e63b55d11e80fa5b41312a3c1d0094c (diff) | |
| download | webtest-7e5e556d3d1830813446b2bf055a615e1675a48b.tar.gz | |
Fixed #108 cgi.parse_qsl is pending deprecation
Diffstat (limited to 'webtest')
| -rw-r--r-- | webtest/app.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webtest/app.py b/webtest/app.py index 6fd308f..7d6eb79 100644 --- a/webtest/app.py +++ b/webtest/app.py @@ -11,7 +11,6 @@ from __future__ import unicode_literals import os import re -import cgi import json import random import fnmatch @@ -649,7 +648,7 @@ class TestApp(object): if upload_files or \ (content_type and to_bytes(content_type).startswith(b'multipart')): - params = cgi.parse_qsl(params, keep_blank_values=True) + params = urlparse.parse_qsl(params, keep_blank_values=True) content_type, params = self.encode_multipart( params, upload_files or ()) environ['CONTENT_TYPE'] = content_type |
