commit | b2afe855e5d75a570707d6bf0e32206e4b7b1c4d | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Fri Jun 09 20:43:48 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Fri Jun 09 20:43:48 2006 +0000 |
tree | b637a7e78de40cf155c471e702e9b465fcd0625d | |
parent | 3ebef999e60cc63baafcdcfa0fd05c063715a66c [diff] [blame] |
Make use of new str.startswith/endswith semantics. Occurences in email and compiler were ignored due to backwards compat requirements.
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 @@ if filename == "<string>": continue - if filename.endswith(".pyc") or filename.endswith(".pyo"): + if filename.endswith((".pyc", ".pyo")): filename = filename[:-1] if coverdir is None: