From f299abdafa0f2b6eb7abae274861b19b361c96bc Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 13 Apr 2015 14:21:02 -0400 Subject: 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. --- Lib/tracemalloc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/tracemalloc.py') diff --git a/Lib/tracemalloc.py b/Lib/tracemalloc.py index adedfc5fb44..6288da8409c 100644 --- a/Lib/tracemalloc.py +++ b/Lib/tracemalloc.py @@ -297,7 +297,7 @@ class _Traces(Sequence): def _normalize_filename(filename): filename = os.path.normcase(filename) - if filename.endswith(('.pyc', '.pyo')): + if filename.endswith('.pyc'): filename = filename[:-1] return filename -- cgit v1.2.3