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

Unified Diff: presubmit_support.py

Issue 2070493002: Expose fnmatch in presubmit's input_api. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 6 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 | tests/presubmit_unittest.py » ('j') | 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 249ec09367fd50659c910bc1d8ec29cf764704f7..4f72d5c8604974d4e9b43e6ded0ad3049b6454c3 100755
--- a/presubmit_support.py
+++ b/presubmit_support.py
@@ -16,7 +16,7 @@ import cpplint
import cPickle # Exposed through the API.
import cStringIO # Exposed through the API.
import contextlib
-import fnmatch
+import fnmatch # Exposed through the API.
import glob
import inspect
import itertools
@@ -348,6 +348,7 @@ class InputApi(object):
self.cPickle = cPickle
self.cpplint = cpplint
self.cStringIO = cStringIO
+ self.fnmatch = fnmatch
self.glob = glob.glob
self.json = json
self.logging = logging.getLogger('PRESUBMIT')
« no previous file with comments | « no previous file | tests/presubmit_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698