Skip to content

Commit

Permalink
bpo-23952: maxlen is a global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 2, 2022
1 parent c224527 commit 90442ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Doc/library/cgi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Support module for Common Gateway Interface (CGI) scripts.
This module defines a number of utilities for use by CGI scripts written in
Python.

The ``maxlen`` variable can be set to an integer indicating the maximum size
of a POST request. POST requests larger than this size will result in a
The global variable ``maxlen`` can be set to an integer indicating the maximum
size of a POST request. POST requests larger than this size will result in a
:exc:`ValueError` being raised during parsing. The default value of this
variable is ``0``, meaning the request size is unlimited.

Expand Down
8 changes: 4 additions & 4 deletions Lib/cgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
This module defines a number of utilities for use by CGI scripts
written in Python.
The maxlen variable can be set to an integer indicating the maximum size of a
POST request. POST requests larger than this size will result in a ValueError
being raised during parsing. The default value of this variable is 0, meaning
the request size is unlimited.
The global variable maxlen can be set to an integer indicating the maximum size
of a POST request. POST requests larger than this size will result in a
ValueError being raised during parsing. The default value of this variable is 0,
meaning the request size is unlimited.
"""

# History
Expand Down

0 comments on commit 90442ca

Please sign in to comment.