mirror of https://github.com/cool-RR/PySnooper.git
Move docstring to class
This commit is contained in:
parent
9a2889d02f
commit
c7b5a2e515
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue