diff options
author | Skip Montanaro <skip@pobox.com> | 2007-02-11 18:41:56 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2007-02-11 18:41:56 (GMT) |
commit | 4a67a6741660d32a31ed74b5c4b981553cd7be41 (patch) | |
tree | eb855e678982d3502de5bac46a6db45f897e406e /Lib | |
parent | d84f68b10f0584d8bbe54dfeb40b0c1a8599e6a1 (diff) | |
download | cpython-4a67a6741660d32a31ed74b5c4b981553cd7be41.zip cpython-4a67a6741660d32a31ed74b5c4b981553cd7be41.tar.gz cpython-4a67a6741660d32a31ed74b5c4b981553cd7be41.tar.bz2 |
backport: fix trace.py --ignore-dir
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/trace.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/trace.py b/Lib/trace.py index 35edac2..364e3f7 100644 --- a/Lib/trace.py +++ b/Lib/trace.py @@ -587,7 +587,7 @@ class Trace: """ if why == 'call': code = frame.f_code - filename = code.co_filename + filename = frame.f_globals.get('__file__', None) if filename: # XXX modname() doesn't work right for packages, so # the ignore support won't work right for packages |