mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#5636: fix next -> __next__ in csv reader docs.
This commit is contained in:
parent
9ae3640b0e
commit
c748506427
3 changed files with 9 additions and 8 deletions
|
@ -590,7 +590,7 @@ class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher):
|
|||
# POST data is normally available through stdin
|
||||
try:
|
||||
length = int(os.environ.get('CONTENT_LENGTH', None))
|
||||
except ValueError:
|
||||
except (ValueError, TypeError):
|
||||
length = -1
|
||||
if request_text is None:
|
||||
request_text = sys.stdin.read(length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue