Commit 7a4934c6 authored by Ontje Lünsdorf's avatar Ontje Lünsdorf
Browse files

Fixed BoundClass.

parent c883e47e
...@@ -39,8 +39,7 @@ class BoundClass(object): ...@@ -39,8 +39,7 @@ class BoundClass(object):
@staticmethod @staticmethod
def bind_early(instance): def bind_early(instance):
cls = type(instance) cls = type(instance)
for name in dir(cls): for name, obj in cls.__dict__.items():
obj = getattr(cls, name)
if type(obj) is BoundClass: if type(obj) is BoundClass:
bound_class = getattr(instance, name) bound_class = getattr(instance, name)
setattr(instance, name, bound_class) setattr(instance, name, bound_class)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment