Skip to content

Commit 90442ca

Browse files
committed
bpo-23952: maxlen is a global variable
1 parent c224527 commit 90442ca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Doc/library/cgi.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Support module for Common Gateway Interface (CGI) scripts.
2121
This module defines a number of utilities for use by CGI scripts written in
2222
Python.
2323

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

Lib/cgi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
This module defines a number of utilities for use by CGI scripts
1515
written in Python.
1616
17-
The maxlen variable can be set to an integer indicating the maximum size of a
18-
POST request. POST requests larger than this size will result in a ValueError
19-
being raised during parsing. The default value of this variable is 0, meaning
20-
the request size is unlimited.
17+
The global variable maxlen can be set to an integer indicating the maximum size
18+
of a POST request. POST requests larger than this size will result in a
19+
ValueError being raised during parsing. The default value of this variable is 0,
20+
meaning the request size is unlimited.
2121
"""
2222

2323
# History

0 commit comments

Comments
 (0)