diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 11:07:33 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 11:07:33 +0200 |
commit | 65be004bb2e0f8ba9a4712d0172bb0d0151a33bb (patch) | |
tree | efc377e4d4688264ca12e19f35d00ac04f4104ba /libpathod/utils.py | |
parent | bd0cfef357ff33ab8be216998e8de69c1784c043 (diff) | |
download | mitmproxy-65be004bb2e0f8ba9a4712d0172bb0d0151a33bb.tar.gz mitmproxy-65be004bb2e0f8ba9a4712d0172bb0d0151a33bb.tar.bz2 mitmproxy-65be004bb2e0f8ba9a4712d0172bb0d0151a33bb.zip |
fix prospector code smells
Diffstat (limited to 'libpathod/utils.py')
-rw-r--r-- | libpathod/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpathod/utils.py b/libpathod/utils.py index 481c5137..ac21dd13 100644 --- a/libpathod/utils.py +++ b/libpathod/utils.py @@ -20,7 +20,7 @@ SIZE_UNITS = dict( ) -class MemBool: +class MemBool(object): """ Truth-checking with a memory, for use in chained if statements. """ @@ -51,7 +51,7 @@ def parse_anchor_spec(s): """ Return a tuple, or None on error. """ - if not "=" in s: + if "=" not in s: return None return tuple(s.split("=", 1)) @@ -83,7 +83,7 @@ def escape_unprintables(s): return s -class Data: +class Data(object): def __init__(self, name): m = __import__(name) dirname, _ = os.path.split(m.__file__) |