summaryrefslogtreecommitdiff
path: root/wsgitools/scgi/forkpool.py
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools/scgi/forkpool.py')
-rw-r--r--wsgitools/scgi/forkpool.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py
index b913190..e6b65fd 100644
--- a/wsgitools/scgi/forkpool.py
+++ b/wsgitools/scgi/forkpool.py
@@ -11,11 +11,6 @@ import select
import sys
import errno
-try:
- long
-except NameError:
- long = int
-
class SocketFileWrapper:
"""Wraps a socket to a wsgi-compliant file-like object."""
def __init__(self, sock, toread):
@@ -374,7 +369,7 @@ class SCGIServer:
con.close()
return
- sfw = SocketFileWrapper(con, long(environ["CONTENT_LENGTH"]))
+ sfw = SocketFileWrapper(con, int(environ["CONTENT_LENGTH"]))
environ.update({
"wsgi.version": (1, 0),
"wsgi.input": sfw,