diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-10-17 18:21:23 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-17 18:21:23 +1300 |
commit | 00071238d2e79ff91132b7e5a3bcc8019d9191ec (patch) | |
tree | 507c346e8f8c605d428140274678fced2e6bbc16 /netlib/wsgi.py | |
parent | 666c59cbfbcbd28062c201c3cb5d6cb928e90aee (diff) | |
parent | c774a9fec93feedc37a450400a03b83f5f4cb4b9 (diff) | |
download | mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.tar.gz mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.tar.bz2 mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.zip |
Merge pull request #1617 from cortesi/object
python3
Diffstat (limited to 'netlib/wsgi.py')
-rw-r--r-- | netlib/wsgi.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/netlib/wsgi.py b/netlib/wsgi.py index 17cbbf00..8e8445f6 100644 --- a/netlib/wsgi.py +++ b/netlib/wsgi.py @@ -1,4 +1,3 @@ -from __future__ import (absolute_import, print_function, division) import time import traceback @@ -8,20 +7,20 @@ import io from netlib import http, tcp, strutils -class ClientConn(object): +class ClientConn: def __init__(self, address): self.address = tcp.Address.wrap(address) -class Flow(object): +class Flow: def __init__(self, address, request): self.client_conn = ClientConn(address) self.request = request -class Request(object): +class Request: def __init__(self, scheme, method, path, http_version, headers, content): self.scheme, self.method, self.path = scheme, method, path @@ -47,7 +46,7 @@ def date_time_string(): return s -class WSGIAdaptor(object): +class WSGIAdaptor: def __init__(self, app, domain, port, sversion): self.app, self.domain, self.port, self.sversion = app, domain, port, sversion |