summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compiler.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/test/test_compiler.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/test/test_compiler.py')
-rw-r--r--Lib/test/test_compiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py
index 48f1643..6fb20c8 100644
--- a/Lib/test/test_compiler.py
+++ b/Lib/test/test_compiler.py
@@ -62,7 +62,7 @@ class CompilerTest(unittest.TestCase):
def testLineNo(self):
# Test that all nodes except Module have a correct lineno attribute.
filename = __file__
- if filename.endswith(".pyc") or filename.endswith(".pyo"):
+ if filename.endswith((".pyc", ".pyo")):
filename = filename[:-1]
tree = compiler.parseFile(filename)
self.check_lineno(tree)