summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-10-19 21:42:29 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-10-19 21:42:29 -0400
commit6224a804d07119eb228a11d306bf392e3d0b266a (patch)
tree9238a7cb8d80482356f5504f2cb5964f932b7c88 /coverage/files.py
parentc7b1c99b06a453af879f4768e347ac89000cce42 (diff)
downloadpython-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.py2
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))