Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Staging:A
python-Twisted
python-38-no-cgi-parseqs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-38-no-cgi-parseqs.patch of Package python-Twisted
Index: Twisted-19.10.0/src/twisted/web/test/test_http.py =================================================================== --- Twisted-19.10.0.orig/src/twisted/web/test/test_http.py +++ Twisted-19.10.0/src/twisted/web/test/test_http.py @@ -9,15 +9,14 @@ from __future__ import absolute_import, import base64 import calendar -import cgi import random import hamcrest try: - from urlparse import urlparse, urlunsplit, clear_cache + from urlparse import urlparse, urlunsplit, clear_cache, parse_qs except ImportError: - from urllib.parse import urlparse, urlunsplit, clear_cache + from urllib.parse import urlparse, urlunsplit, clear_cache, parse_qs from io import BytesIO from itertools import cycle @@ -2156,15 +2155,15 @@ Hello, class QueryArgumentsTests(unittest.TestCase): def testParseqs(self): self.assertEqual( - cgi.parse_qs(b"a=b&d=c;+=f"), + parse_qs(b"a=b&d=c;+=f"), http.parse_qs(b"a=b&d=c;+=f")) self.assertRaises( ValueError, http.parse_qs, b"blah", strict_parsing=True) self.assertEqual( - cgi.parse_qs(b"a=&b=c", keep_blank_values=1), + parse_qs(b"a=&b=c", keep_blank_values=1), http.parse_qs(b"a=&b=c", keep_blank_values=1)) self.assertEqual( - cgi.parse_qs(b"a=&b=c"), + parse_qs(b"a=&b=c"), http.parse_qs(b"a=&b=c"))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor