Commit e8089cb1 authored by Denis Bilenko's avatar Denis Bilenko

remove duplicate getattr in monkey.patch_module

parent 6036e346
......@@ -86,7 +86,7 @@ def patch_module(name, items=None):
newitem = getattr(source, attr)
if olditem is not newitem:
setattr(monkey_original, attr, olditem)
setattr(dest, attr, getattr(source, attr))
setattr(dest, attr, newitem)
count += 1
return count
......
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