backport: fix trace.py --ignore-dir
This commit is contained in:
parent
d84f68b10f
commit
4a67a67416
|
@ -587,7 +587,7 @@ class Trace:
|
||||||
"""
|
"""
|
||||||
if why == 'call':
|
if why == 'call':
|
||||||
code = frame.f_code
|
code = frame.f_code
|
||||||
filename = code.co_filename
|
filename = frame.f_globals.get('__file__', None)
|
||||||
if filename:
|
if filename:
|
||||||
# XXX modname() doesn't work right for packages, so
|
# XXX modname() doesn't work right for packages, so
|
||||||
# the ignore support won't work right for packages
|
# the ignore support won't work right for packages
|
||||||
|
|
|
@ -169,6 +169,9 @@ Extension Modules
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Patch 1571379: Make trace's --ignore-dir facility work in the face of
|
||||||
|
relative directory names.
|
||||||
|
|
||||||
- Bug #1600860: Search for shared python library in LIBDIR, not lib/python/config,
|
- Bug #1600860: Search for shared python library in LIBDIR, not lib/python/config,
|
||||||
on "linux" and "gnu" systems.
|
on "linux" and "gnu" systems.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue