Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _snoop_can_click(output=None, variables=(), depth=1, prefix=''):
write = get_write_function(output)
# noinspection PyShadowingBuiltins
@decorator.decorator
def decorate(function, *args, **kwargs):
target_code_object = function.__code__
with TracerCanClick(target_code_object=target_code_object,
write=write, variables=variables,
depth=depth, prefix=prefix):
return function(*args, **kwargs)
return decorate