Move docstring to class

This commit is contained in:
Ram Rachum 2019-05-11 14:29:23 +03:00
parent 9a2889d02f
commit c7b5a2e515
1 changed files with 38 additions and 38 deletions

View File

@ -132,16 +132,6 @@ thread_global = threading.local()
class Tracer:
def __init__(
self,
output=None,
watch=(),
watch_explode=(),
depth=1,
prefix='',
overwrite=False,
thread_info=False,
):
'''
Snoop on the function, writing everything it's doing to stderr.
@ -179,6 +169,16 @@ class Tracer:
@pysnooper.snoop(thread_info=True)
'''
def __init__(
self,
output=None,
watch=(),
watch_explode=(),
depth=1,
prefix='',
overwrite=False,
thread_info=False,
):
self._write, self.truncate = get_write_and_truncate_functions(output)
if self.truncate is None and overwrite: