summaryrefslogtreecommitdiffstats
path: root/format.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-09-04 15:13:55 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-09-04 15:13:55 +0200
commite1115782a728a7e895e934e53d4d7067e2533b31 (patch)
treed2d77a42ea34117879e60884c9fa0ecd79c92393 /format.py
parent6fee7dcd36be6632ef2585397a4412f3af9d5c9c (diff)
downloadclufter-e1115782a728a7e895e934e53d4d7067e2533b31.tar.gz
clufter-e1115782a728a7e895e934e53d4d7067e2533b31.tar.xz
clufter-e1115782a728a7e895e934e53d4d7067e2533b31.zip
format: cosmetics
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'format.py')
-rw-r--r--format.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/format.py b/format.py
index 65ebad7..8d35789 100644
--- a/format.py
+++ b/format.py
@@ -74,7 +74,6 @@ class formats(PluginRegistry):
except AttributeError:
if not hasattr(obj, '_protocol'):
assert attr not in cls._protocols, 'Unexpected override'
- pass
for protocol in cls._protocols:
newspec = specs.get(protocol, None)
@@ -588,7 +587,7 @@ class XML(SimpleFormat):
"""
# XXX holds its private cache under cls._validation_cache
assert spec
- if not sep in spec:
+ if sep not in spec:
spec = join(root_dir, cls.root, spec)
if any(filter(lambda c: c in spec, '?*')):
globbed = glob(spec)