From 65be004bb2e0f8ba9a4712d0172bb0d0151a33bb Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Thu, 18 Jun 2015 11:07:33 +0200 Subject: fix prospector code smells --- libpathod/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libpathod/utils.py') 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__) -- cgit v1.2.3