#5636: fix next -> __next__ in csv reader docs.

This commit is contained in:
Georg Brandl 2009-04-01 15:53:15 +00:00
parent 9ae3640b0e
commit c748506427
3 changed files with 9 additions and 8 deletions

View file

@ -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)