From fe6f82be237808ba86688a117f32cf2311c2118c Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Mon, 28 Jul 2014 12:54:59 +0300 Subject: [PATCH] Remove an usage of deprecated cgi.parse_qs(). --- mediagoblin/tests/test_oauth1.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mediagoblin/tests/test_oauth1.py b/mediagoblin/tests/test_oauth1.py index 16c0f280..f681a6b3 100644 --- a/mediagoblin/tests/test_oauth1.py +++ b/mediagoblin/tests/test_oauth1.py @@ -14,8 +14,6 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -import cgi - import pytest from six.moves.urllib.parse import parse_qs, urlparse @@ -147,7 +145,7 @@ class TestOAuth(object): headers["Content-Type"] = self.MIME_FORM response = self.test_app.post(endpoint, headers=headers) - response = cgi.parse_qs(response.body) + response = parse_qs(response.body.decode()) # each element is a list, reduce it to a string for key, value in response.items(): -- 2.25.1