mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
fix trace.py --ignore-dir
This commit is contained in:
parent
1fbe3ab5de
commit
691acf2879
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -128,6 +128,9 @@ Core and builtins
|
|||
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,
|
||||
on "linux" and "gnu" systems.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue