diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-27 10:12:18 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-27 10:36:28 +0100 |
commit | 8c375383148f100f03aed52827ac513f145078c2 (patch) | |
tree | dbae3b5d4d603e5e226477f1938119e2acfcfc1f /libmproxy/console/select.py | |
parent | c2bb29f669cd80509f4efe205551a9cf5fc29770 (diff) | |
download | mitmproxy-8c375383148f100f03aed52827ac513f145078c2.tar.gz mitmproxy-8c375383148f100f03aed52827ac513f145078c2.tar.bz2 mitmproxy-8c375383148f100f03aed52827ac513f145078c2.zip |
code formatting: fix whitespace issues
Diffstat (limited to 'libmproxy/console/select.py')
-rw-r--r-- | libmproxy/console/select.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmproxy/console/select.py b/libmproxy/console/select.py index bf96a785..928a7ca5 100644 --- a/libmproxy/console/select.py +++ b/libmproxy/console/select.py @@ -4,6 +4,7 @@ from . import common class _OptionWidget(urwid.WidgetWrap): + def __init__(self, option, text, shortcut, active, focus): self.option = option textattr = "text" @@ -36,6 +37,7 @@ class _OptionWidget(urwid.WidgetWrap): class OptionWalker(urwid.ListWalker): + def __init__(self, options): urwid.ListWalker.__init__(self) self.options = options @@ -59,6 +61,7 @@ class OptionWalker(urwid.ListWalker): class Heading: + def __init__(self, text): self.text = text @@ -73,6 +76,7 @@ _neg = lambda: False class Option: + def __init__(self, text, shortcut, getstate=None, activate=None): self.text = text self.shortcut = shortcut @@ -89,6 +93,7 @@ class Option: class Select(urwid.ListBox): + def __init__(self, options): self.walker = OptionWalker(options) urwid.ListBox.__init__( |