Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: presubmit_support.py

Issue 271563002: Fixed wrong test (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: presubmit_support.py
diff --git a/presubmit_support.py b/presubmit_support.py
index 62a39be3cfb8e158a1bd7ea4590a9968bd7c6027..111db588aec44be481b084bc40db8aa819f9ed3a 100755
--- a/presubmit_support.py
+++ b/presubmit_support.py
@@ -1427,7 +1427,7 @@ def DoPresubmitChecks(change,
def ScanSubDirs(mask, recursive):
if not recursive:
- return [x for x in glob.glob(mask) if '.svn' not in x and '.git' not in x]
+ return [x for x in glob.glob(mask) if x not in ('.svn', '.git')]
else:
results = []
for root, dirs, files in os.walk('.'):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698