Make compatible with Python 3 (dict.keys is a view)
This commit is contained in:
parent
27cc647754
commit
af52a0b58d
|
@ -734,7 +734,7 @@ def inject(**bindings):
|
|||
def class_wrapper(cls):
|
||||
orig_init = cls.__init__
|
||||
|
||||
original_keys = bindings.keys()
|
||||
original_keys = tuple(bindings.keys())
|
||||
|
||||
for k in bindings:
|
||||
bindings[k.lstrip('_')] = bindings.pop(k)
|
||||
|
|
Loading…
Reference in New Issue