def patch_object(*args, **kwargs):
 warnings.warn('Please use patch.object instead.', DeprecationWarning, 2)
 return _patch_object(*args, **kwargs)

def patch_object ( * args , ** kwargs ) : warnings . warn ( 'Please use patch.object instead.' , DeprecationWarning , 2 ) return _patch_object ( * args , ** kwargs )
a deprecated form of patch .