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
diff --git a/presubmit_support.py b/presubmit_support.py
index 62a39be..111db58 100755
--- a/presubmit_support.py
+++ b/presubmit_support.py
@@ -1427,7 +1427,7 @@
 
 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('.'):