Skip to content

Commit

Permalink
format: avoid unneeded indirection (+ potentially other pros)
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 2320b49 commit 6fee7dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__(cls, name, bases, attrs):
cls._context = set(popattr(cls, 'context_specs',
attrs.pop('context_specs', ())))
# protocols merge: top-down through inheritance
for base in reversed(cls.__bases__):
for base in reversed(bases):
cls._protocols.update(getattr(base, '_protocols', {}))
cls._validators.update(getattr(base, '_validators', {}))
cls._context.update(getattr(base, '_context', ()))
Expand Down

0 comments on commit 6fee7dc

Please sign in to comment.