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 | |
parent | 9a51912f4e63b55d11e80fa5b41312a3c1d0094c (diff) | |
download | webtest-7e5e556d3d1830813446b2bf055a615e1675a48b.tar.gz |
Fixed #108 cgi.parse_qsl is pending deprecation
-rw-r--r-- | CHANGELOG.rst | 5 | ||||
-rw-r--r-- | webtest/app.py | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 09ec763..a1b9ec3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -13,12 +13,13 @@ News - Fixed #93 Support basic authentication [gawel] -- Fixed #107 Explicit error message when WSGIProxy2 is not installer +- Fixed #103 Broken "Edit me on GitHub" links in documentation [gawel] -- Fixed #103 Broken "Edit me on GitHub" links in documentation +- Fixed #107 Explicit error message when WSGIProxy2 is not installer [gawel] +- Fixed #108 cgi.parse_qsl is pending deprecation 2.0.14 (2014-01-23) ------------------- 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 |