266
264
patched_attr = getattr(mod, attr_name, None)
267
265
if patched_attr is not None:
268
266
setattr(orig_mod, attr_name, patched_attr)
290
270
def is_monkey_patched(module):
291
271
"""Returns True if the given module is monkeypatched currently, False if
292
272
not. *module* can be either the module itself or its name.