From 6fee7dcd36be6632ef2585397a4412f3af9d5c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= Date: Thu, 4 Sep 2014 14:44:25 +0200 Subject: [PATCH] format: avoid unneeded indirection (+ potentially other pros) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.py b/format.py index 3b9851f..65ebad7 100644 --- a/format.py +++ b/format.py @@ -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', ()))