aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/controller.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-10-17 17:29:45 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-10-17 17:37:08 +1300
commita647b30365593a4a3056fcf6936f5441ab9eda88 (patch)
tree079b18790be5dfcc9a88f19e282b57088574d223 /mitmproxy/controller.py
parentfb22f2ff4f75783ba786935c93b75f372ede21f5 (diff)
downloadmitmproxy-a647b30365593a4a3056fcf6936f5441ab9eda88.tar.gz
mitmproxy-a647b30365593a4a3056fcf6936f5441ab9eda88.tar.bz2
mitmproxy-a647b30365593a4a3056fcf6936f5441ab9eda88.zip
python3: clean up class brackets
Diffstat (limited to 'mitmproxy/controller.py')
-rw-r--r--mitmproxy/controller.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mitmproxy/controller.py b/mitmproxy/controller.py
index 397c906d..09b7abed 100644
--- a/mitmproxy/controller.py
+++ b/mitmproxy/controller.py
@@ -41,13 +41,13 @@ Events = frozenset([
])
-class LogEntry():
+class LogEntry:
def __init__(self, msg, level):
self.msg = msg
self.level = level
-class Log():
+class Log:
"""
The central logger, exposed to scripts as mitmproxy.ctx.log.
"""
@@ -82,7 +82,7 @@ class Log():
self.master.add_log(text, level)
-class Master():
+class Master:
"""
The master handles mitmproxy's main event loop.
"""
@@ -185,7 +185,7 @@ class ServerThread(basethread.BaseThread):
self.server.serve_forever()
-class Channel():
+class Channel:
"""
The only way for the proxy server to communicate with the master
is to use the channel it has been given.
@@ -272,7 +272,7 @@ def handler(f):
NO_REPLY = object() # special object we can distinguish from a valid "None" reply.
-class Reply():
+class Reply:
"""
Messages sent through a channel are decorated with a "reply" attribute.
This object is used to respond to the message through the return