summaryrefslogtreecommitdiffstats
path: root/Lib/trace.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-06-09 20:43:48 (GMT)
committerGeorg Brandl <georg@python.org>2006-06-09 20:43:48 (GMT)
commitb2afe855e5d75a570707d6bf0e32206e4b7b1c4d (patch)
treeb637a7e78de40cf155c471e702e9b465fcd0625d /Lib/trace.py
parent3ebef999e60cc63baafcdcfa0fd05c063715a66c (diff)
downloadcpython-b2afe855e5d75a570707d6bf0e32206e4b7b1c4d.zip
cpython-b2afe855e5d75a570707d6bf0e32206e4b7b1c4d.tar.gz
cpython-b2afe855e5d75a570707d6bf0e32206e4b7b1c4d.tar.bz2
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 ca6294e..db36e1d 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: