summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-09-04 14:44:25 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-09-04 14:44:25 +0200
commit6fee7dcd36be6632ef2585397a4412f3af9d5c9c (patch)
treeb2d6f9dcb42393dfda0ff228a7eff230a97b1c95
parent2320b49d30011b44a791a341048f2afeab36705b (diff)
downloadclufter-6fee7dcd36be6632ef2585397a4412f3af9d5c9c.tar.gz
clufter-6fee7dcd36be6632ef2585397a4412f3af9d5c9c.tar.xz
clufter-6fee7dcd36be6632ef2585397a4412f3af9d5c9c.zip
format: avoid unneeded indirection (+ potentially other pros)
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--format.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.py b/format.py
index 3b9851f..65ebad7 100644
--- a/format.py
+++ b/format.py
@@ -52,7 +52,7 @@ class formats(PluginRegistry):
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', ()))