-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-34866: Adding max_num_fields to cgi.FieldStorage #9660
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
Merged
miss-islington
merged 8 commits into
python:master
from
matthewbelisle-wf:cgi-max-num-fields
Oct 19, 2018
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d846e2b
Adding max_num_fields to cgi.FieldStorage
matthewbelisle-wf 21e5e48
Propagating max_num_fields to FieldStorage subclass
matthewbelisle-wf 27352e9
Fixing typos
matthewbelisle-wf ab0eb93
Fixing annotation
matthewbelisle-wf 7668322
Merge branch 'master' into cgi-max-num-fields
matthewbelisle-wf 60aee01
Merge branch 'master' into cgi-max-num-fields
matthewbelisle-wf 1fa59e4
Using count() instead of finditer() for max_num_fields check
matthewbelisle-wf 20a77f2
Update 2018-10-03-11-07-28.bpo-34866.ML6KpJ.rst
methane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixing typos
- Loading branch information
commit 27352e9fc243339db4ca327482d96b471da77b88
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -649,7 +649,7 @@ def parse_qs(qs, keep_blank_values=False, strict_parsing=False, | |
encoding and errors: specify how to decode percent-encoded sequences | ||
into Unicode characters, as accepted by the bytes.decode() method. | ||
|
||
max_num_fields: Integer. If set, then throws an ValueError if there | ||
max_num_fields: Integer. If set, then throws a ValueError if there | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto about the annotation. |
||
are more than n fields read by parse_qsl(). | ||
|
||
Returns a dictionary. | ||
|
@@ -692,7 +692,7 @@ def parse_qsl(qs, keep_blank_values=False, strict_parsing=False, | |
encoding and errors: specify how to decode percent-encoded sequences | ||
into Unicode characters, as accepted by the bytes.decode() method. | ||
|
||
max_num_fields: Integer. If set, then throws an ValueError | ||
max_num_fields: Integer. If set, then throws a ValueError | ||
if there are more than n fields read by parse_qsl(). | ||
|
||
Returns a list, as G-d intended. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you really want a type annotation (of which I see no precedent above), then just write "int".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed in ab0eb93.