def is_patched(module, attribute_name):
 attribute = getattr(module, attribute_name)
 return hasattr(attribute, __BACKUP_ATTRIBUTE_NAME)

def is_patched ( module , attribute_name ) : attribute = getattr ( module , attribute_name ) return hasattr ( attribute , __BACKUP_ATTRIBUTE_NAME )
check if an attribute has been monkey-patched .