summaryrefslogtreecommitdiffstats
path: root/Lib/xmlrpc/server.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-01 15:53:15 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-01 15:53:15 (GMT)
commitc7485064278efb9231df982866ec2c0051814c74 (patch)
tree55224928d391f5056cb71606e31c75f9ba6e269b /Lib/xmlrpc/server.py
parent9ae3640b0e26819a8df2ce8ba4541f94dea92d5c (diff)
downloadcpython-c7485064278efb9231df982866ec2c0051814c74.zip
cpython-c7485064278efb9231df982866ec2c0051814c74.tar.gz
cpython-c7485064278efb9231df982866ec2c0051814c74.tar.bz2
#5636: fix next -> __next__ in csv reader docs.
Diffstat (limited to 'Lib/xmlrpc/server.py')
-rw-r--r--Lib/xmlrpc/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py
index eb807c4..ea828a5 100644
--- a/Lib/xmlrpc/server.py
+++ b/Lib/xmlrpc/server.py
@@ -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)