diff options
author | Helmut Grohne <helmut@subdivi.de> | 2009-03-29 23:21:43 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2009-03-29 23:21:43 +0200 |
commit | 58149dfd3d67399a47dbf3035ab0f5a866abcd23 (patch) | |
tree | 34c5cc6092a2863980b6feb5d7298ad5559302cc /wsgitools/scgi/forkpool.py | |
parent | 5c0a3965cdb9cac87d0b0ea773a6276c73a27ba6 (diff) | |
download | wsgitools-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/forkpool.py')
-rw-r--r-- | wsgitools/scgi/forkpool.py | 7 |
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, |