summaryrefslogtreecommitdiff
path: root/wsgitools/scgi/asynchronous.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2009-03-29 23:21:43 +0200
committerHelmut Grohne <helmut@subdivi.de>2009-03-29 23:21:43 +0200
commit58149dfd3d67399a47dbf3035ab0f5a866abcd23 (patch)
tree34c5cc6092a2863980b6feb5d7298ad5559302cc /wsgitools/scgi/asynchronous.py
parent5c0a3965cdb9cac87d0b0ea773a6276c73a27ba6 (diff)
downloadwsgitools-58149dfd3d67399a47dbf3035ab0f5a866abcd23.tar.gz
get rid of old builtin long
Even Py2.4 can handle large parameters to int, so long is not needed.
Diffstat (limited to 'wsgitools/scgi/asynchronous.py')
-rw-r--r--wsgitools/scgi/asynchronous.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/wsgitools/scgi/asynchronous.py b/wsgitools/scgi/asynchronous.py
index 33d5130..b51e7ca 100644
--- a/wsgitools/scgi/asynchronous.py
+++ b/wsgitools/scgi/asynchronous.py
@@ -10,10 +10,6 @@ except ImportError:
import cStringIO as io
except ImportError:
import StringIO as io
-try:
- long
-except NameError:
- long = int
class SCGIConnection(asyncore.dispatcher):
"""SCGI connection class used by L{SCGIServer}."""
@@ -83,7 +79,7 @@ class SCGIConnection(asyncore.dispatcher):
if not reqlen.isdigit():
self.close()
return # invalid request format
- reqlen = long(reqlen)
+ reqlen = int(reqlen)
if reqlen > self.maxrequestsize:
self.close()
return # request too long
@@ -110,7 +106,7 @@ class SCGIConnection(asyncore.dispatcher):
if not self.environ.get("CONTENT_LENGTH", "bad").isdigit():
self.close()
return
- self.reqlen = long(self.environ["CONTENT_LENGTH"])
+ self.reqlen = int(self.environ["CONTENT_LENGTH"])
if self.reqlen > self.maxpostsize:
self.close()
return