Visitar URL original
bpo-27777 Fix for several reported cgi.py issues by eykamp · Pull Request #7804 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20241130094942/https://github.com/python/cpython/pull/7804
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-27777 Fix for several reported cgi.py issues #7804

Closed
wants to merge 2 commits into from

Conversation

eykamp
Copy link

@eykamp eykamp commented Jun 19, 2018 •

This is primarily a repackaging of the fixes proposed by Bert JW Regeer.

https://bugs.python.org/issue27777

@eykamp eykamp changed the title bpo-277777 Fix for several reported cgi.py issues bpo-27777 Fix for several reported cgi.py issues Jun 19, 2018
@ned-deily
Copy link
Member

@eykamp Looks like the change causes another test case to fail. See the Travis or VSTS CI details:

======================================================================
2018-06-19T19:19:06.7474160Z ERROR: test_parse_multipart_invalid_encoding (test.test_cgi.CgiTests)
2018-06-19T19:19:06.7490910Z ----------------------------------------------------------------------
2018-06-19T19:19:06.7507040Z Traceback (most recent call last):
2018-06-19T19:19:06.7522140Z   File "/Users/vsts/agent/2.134.2/work/1/s/Lib/test/test_cgi.py", line 146, in test_parse_multipart_invalid_encoding
2018-06-19T19:19:06.7537280Z     self.assertEqual(result, expected)
2018-06-19T19:19:06.7552850Z   File "/Users/vsts/agent/2.134.2/work/1/s/Lib/unittest/case.py", line 839, in assertEqual
2018-06-19T19:19:06.7567860Z     assertion_func(first, second, msg=msg)
2018-06-19T19:19:06.7582800Z   File "/Users/vsts/agent/2.134.2/work/1/s/Lib/unittest/case.py", line 1132, in assertDictEqual
2018-06-19T19:19:06.7597610Z     if d1 != d2:
2018-06-19T19:19:06.7612250Z BytesWarning: Comparison between bytes and string

@PierreQuentel
Copy link
Contributor

I have submitted another PR, #10771, to solve the issue.

@MoodyMudit
Copy link

Hi, This change seems to fix the bug. When is this change going to be merged and sent out?

@AlexWaygood
Copy link
Member

AlexWaygood commented Apr 11, 2022 •

@eykamp, thanks for the PR. Unfortunately, the cgi module is now deprecated following the acceptance of PEP 594, so bugfixes and improvements for this module will no longer be accepted. I am therefore closing this PR.

I hope that this does not dissuade you from contributing to CPython in the future 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants