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/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/files.py') diff --git a/coverage/files.py b/coverage/files.py index 464535a..94388f9 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)) -- cgit v1.2.1