Commit e57b09db authored by pgervais@chromium.org's avatar pgervais@chromium.org

Fixed wrong test

BUG=366554

Review URL: https://codereview.chromium.org/271563002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@268647 0039d316-1c4b-4281-b951-d872f2087c98
parent 64d819b6
...@@ -1427,7 +1427,7 @@ def DoPresubmitChecks(change, ...@@ -1427,7 +1427,7 @@ def DoPresubmitChecks(change,
def ScanSubDirs(mask, recursive): def ScanSubDirs(mask, recursive):
if not 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: else:
results = [] results = []
for root, dirs, files in os.walk('.'): for root, dirs, files in os.walk('.'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment