summaryrefslogtreecommitdiff
path: root/Lib/trace.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-06-09 20:43:48 +0000
committerGeorg Brandl <georg@python.org>2006-06-09 20:43:48 +0000
commit0e3e7b6645ee922c4d2d922513d4e63ef65cafd8 (patch)
tree8a4f18f98f8637f58ce14f5cfd3fc8e9e676f5b4 /Lib/trace.py
parent63326bf54f9c578ff6b04f0078808dc585fa03b8 (diff)
downloadcpython-0e3e7b6645ee922c4d2d922513d4e63ef65cafd8.tar.gz
Make use of new str.startswith/endswith semantics.
Occurences in email and compiler were ignored due to backwards compat requirements.
Diffstat (limited to 'Lib/trace.py')
-rw-r--r--Lib/trace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/trace.py b/Lib/trace.py
index ca6294e031..db36e1d21d 100644
--- a/Lib/trace.py
+++ b/Lib/trace.py
@@ -285,7 +285,7 @@ class CoverageResults:
if filename == "<string>":
continue
- if filename.endswith(".pyc") or filename.endswith(".pyo"):
+ if filename.endswith((".pyc", ".pyo")):
filename = filename[:-1]
if coverdir is None: