Skip to content

Commit

Permalink
format: cosmetics
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Pokorný <[email protected]>
  • Loading branch information
jnpkrn committed Sep 4, 2014
1 parent 6fee7dc commit e111578
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions format.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def __init__(cls, name, bases, attrs):
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)
Expand Down Expand Up @@ -588,7 +587,7 @@ def etree_rng_validator(cls, et, root_dir=DEFAULT_ROOT_DIR,
"""
# 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)
Expand Down

0 comments on commit e111578

Please sign in to comment.