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

Unified Diff: third_party/pylint/reporters/text.py

Issue 202773002: Presubmit check improvements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 9 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
« PRESUBMIT.py ('K') | « PRESUBMIT.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pylint/reporters/text.py
diff --git a/third_party/pylint/reporters/text.py b/third_party/pylint/reporters/text.py
index 269a519fe531182b13c1ac20f9a1f332d2b77f10..032df6b162f2d7f85340cc3a161f3a8bba9cce4d 100644
--- a/third_party/pylint/reporters/text.py
+++ b/third_party/pylint/reporters/text.py
@@ -47,10 +47,10 @@ class TextReporter(BaseReporter):
def add_message(self, msg_id, location, msg):
"""manage message of different type and in the context of path"""
- module, obj, line, col_offset = location[1:]
+ path, module, obj, line, col_offset = location
if module not in self._modules:
if module:
- self.writeln('************* Module %s' % module)
+ self.writeln('************* Module %s' % (path if path else module))
self._modules[module] = 1
else:
self.writeln('************* %s' % module)
« PRESUBMIT.py ('K') | « PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698