mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 10:15:11 +00:00
Update tracer.py
This commit is contained in:
parent
f3d08deb9b
commit
0dce074828
1 changed files with 1 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ def get_path_and_source_from_frame(frame):
|
|||
try:
|
||||
import linecache
|
||||
_, _, source, _ = linecache.cache.get(file_name)
|
||||
source = [line.rstrip() for line in source] # remove '\n' at the end
|
||||
except Exception:
|
||||
pass
|
||||
elif ipython_filename_match:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue