diff options
| author | Brett Cannon <brett@python.org> | 2015-04-13 14:21:02 -0400 |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2015-04-13 14:21:02 -0400 |
| commit | f299abdafa0f2b6eb7abae274861b19b361c96bc (patch) | |
| tree | afc3a2bf560e30c7725510eda3b57d71ceddba00 /Lib/test/test_trace.py | |
| parent | a63cc212348e276c8ede32773313c60ff7fda651 (diff) | |
| download | cpython-git-f299abdafa0f2b6eb7abae274861b19b361c96bc.tar.gz | |
Issue #23731: Implement PEP 488.
The concept of .pyo files no longer exists. Now .pyc files have an
optional `opt-` tag which specifies if any extra optimizations beyond
the peepholer were applied.
Diffstat (limited to 'Lib/test/test_trace.py')
| -rw-r--r-- | Lib/test/test_trace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py index 05bf274ca8..2f2c584a5c 100644 --- a/Lib/test/test_trace.py +++ b/Lib/test/test_trace.py @@ -13,8 +13,8 @@ from test.tracedmodules import testmod #------------------------------- Utilities -----------------------------------# def fix_ext_py(filename): - """Given a .pyc/.pyo filename converts it to the appropriate .py""" - if filename.endswith(('.pyc', '.pyo')): + """Given a .pyc filename converts it to the appropriate .py""" + if filename.endswith('.pyc'): filename = filename[:-1] return filename |
