diff Lib/xmlrpc/server.py @ 52648:abf6dad7d64f

#5636: fix next -> __next__ in csv reader docs.
author Georg Brandl <georg@python.org>
date Wed, 01 Apr 2009 15:53:15 +0000
parents acfc18cdcdfb
children cef8b8259ac9
line wrap: on
line diff
--- a/Lib/xmlrpc/server.py	Wed Apr 01 14:59:59 2009 +0000
+++ b/Lib/xmlrpc/server.py	Wed Apr 01 15:53:15 2009 +0000
@@ -590,7 +590,7 @@
             # 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)