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/files.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/files.py')
-rw-r--r-- | coverage/files.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/files.py b/coverage/files.py index 464535a8..94388f96 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -137,7 +137,7 @@ def prep_patterns(patterns): """ prepped = [] for p in patterns or []: - if p.startswith("*") or p.startswith("?"): + if p.startswith(("*", "?")): prepped.append(p) else: prepped.append(abs_file(p)) |