summaryrefslogtreecommitdiff
path: root/Lib/trace.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2015-04-13 14:21:02 -0400
committerBrett Cannon <brett@python.org>2015-04-13 14:21:02 -0400
commitb09b34b211300f68cc98f6b882f7d2e2f4a76f10 (patch)
tree3663b436f2295e162cbd2a36f9cad1a6d28ad04b /Lib/trace.py
parenta6a9e6d9d2f1f73e3411fce9468b8dcf8478b707 (diff)
downloadcpython-b09b34b211300f68cc98f6b882f7d2e2f4a76f10.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/trace.py')
-rwxr-xr-xLib/trace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index 41eff26db8..f108266816 100755
--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -305,7 +305,7 @@ class CoverageResults:
if self.is_ignored_filename(filename):
continue
- if filename.endswith((".pyc", ".pyo")):
+ if filename.endswith(".pyc"):
filename = filename[:-1]
if coverdir is None: