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 | 6224a804d07119eb228a11d306bf392e3d0b266a (patch) | |
tree | 9238a7cb8d80482356f5504f2cb5964f932b7c88 /coverage/codeunit.py | |
parent | c7b1c99b06a453af879f4768e347ac89000cce42 (diff) | |
download | python-coveragepy-git-6224a804d07119eb228a11d306bf392e3d0b266a.tar.gz |
Now I can use tuples with startswith and endswith.
--HG--
branch : 4.0
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 ca1ae5c5..c58e237b 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" |