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):
@staticmethod
def bind_early(instance):
cls = type(instance)
for name in dir(cls):
obj = getattr(cls, name)
for name, obj in cls.__dict__.items():
if type(obj) is BoundClass:
bound_class = getattr(instance, name)
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