Make compatible with Python 3 (dict.keys is a view)

This commit is contained in:
Jakub Stasiak 2013-03-19 00:45:44 +00:00
parent 27cc647754
commit af52a0b58d
1 changed files with 1 additions and 1 deletions

View File

@ -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)