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

Unified Diff: presubmit_support.py

Issue 9417023: Presubmit tests: allow 100columns limit for .java files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 8 years, 10 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
Index: presubmit_support.py
===================================================================
--- presubmit_support.py (revision 122360)
+++ presubmit_support.py (working copy)
@@ -454,6 +454,10 @@
"""
return os.path.abspath(os.path.join(self._local_root, self.LocalPath()))
+ def GetFileExt(self):
M-A Ruel 2012/02/16 22:35:43 I'd rather not add _yet another member_. Since it'
bulach 2012/02/17 01:25:15 sounds reasonable. removed..
+ """Returns the extension of this file."""
+ return os.path.splitext(self._path)[1]
+
def IsDirectory(self):
"""Returns true if this object is a directory."""
if self._is_directory is None:

Powered by Google App Engine
This is Rietveld 408576698