From 438f29546437ff235772ad8d3a915c42f7bb2665 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 19 Oct 2013 21:42:29 -0400 Subject: Now I can use tuples with startswith and endswith. --- coverage/codeunit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/codeunit.py') diff --git a/coverage/codeunit.py b/coverage/codeunit.py index ca1ae5c..c58e237 100644 --- a/coverage/codeunit.py +++ b/coverage/codeunit.py @@ -52,7 +52,7 @@ class CodeUnit(object): else: f = morf # .pyc files should always refer to a .py instead. - if f.endswith('.pyc') or f.endswith('.pyo'): + if f.endswith(('.pyc', '.pyo')): f = f[:-1] elif f.endswith('$py.class'): # Jython f = f[:-9] + ".py" -- cgit v1.2.1