diff options
author | Helmut Grohne <helmut@subdivi.de> | 2014-01-06 18:38:58 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2014-01-06 18:38:58 +0100 |
commit | 42f5ccf09799d3e475eb996b023a0daabae49cdb (patch) | |
tree | 91f7407adf98014a5f5652a94ba4e1f16af3e8d2 /wsgitools/scgi | |
parent | ed6d6c8f06404489ba2301955c8e6f82f8f4f454 (diff) | |
download | wsgitools-42f5ccf09799d3e475eb996b023a0daabae49cdb.tar.gz |
switch to new-style classes entirely
There is no reason to use old-style classes beyond laziness.
Diffstat (limited to 'wsgitools/scgi')
-rw-r--r-- | wsgitools/scgi/__init__.py | 2 | ||||
-rw-r--r-- | wsgitools/scgi/forkpool.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/wsgitools/scgi/__init__.py b/wsgitools/scgi/__init__.py index cbe7a80..898fd61 100644 --- a/wsgitools/scgi/__init__.py +++ b/wsgitools/scgi/__init__.py @@ -7,7 +7,7 @@ except ImportError: else: have_sendfile = True -class FileWrapper: +class FileWrapper(object): """ @ivar offset: Initially 0. Becomes -1 when reading using next and becomes positive when reading using next. In the latter case it diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py index 514094f..a49d1ec 100644 --- a/wsgitools/scgi/forkpool.py +++ b/wsgitools/scgi/forkpool.py @@ -27,7 +27,7 @@ else: __all__ = [] -class SocketFileWrapper: +class SocketFileWrapper(object): """Wraps a socket to a wsgi-compliant file-like object.""" def __init__(self, sock, toread): """@param sock: is a C{socket.socket()}""" @@ -165,10 +165,10 @@ class SocketFileWrapper: self.write(line) __all__.append("SCGIServer") -class SCGIServer: +class SCGIServer(object): """Usage: create an L{SCGIServer} object and invoke the run method which will then turn this process into an scgi server.""" - class WorkerState: + class WorkerState(object): """state: 0 means idle and 1 means working. These values are also sent as strings '0' and '1' over the socket.""" def __init__(self, pid, sock, state): |