diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-19 21:42:29 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-10-19 21:42:29 -0400 |
commit | 438f29546437ff235772ad8d3a915c42f7bb2665 (patch) | |
tree | 3d9079fb170050e3067f30e1a375bf3be6279c2f /coverage/codeunit.py | |
parent | f5ae64e79ac7e8326897a4e0dd748ec640330aed (diff) | |
download | python-coveragepy-438f29546437ff235772ad8d3a915c42f7bb2665.tar.gz |
Now I can use tuples with startswith and endswith.
Diffstat (limited to 'coverage/codeunit.py')
-rw-r--r-- | coverage/codeunit.py | 2 |
1 files changed, 1 insertions, 1 deletions
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" |