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

Side by Side Diff: third_party/pylint/pylint/reporters/guireporter.py

Issue 1920403002: [content/test/gpu] Run pylint check of gpu tests in unittest instead of PRESUBMIT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update path to LICENSE.txt of logilab/README.chromium Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 """ reporter used by gui.py """
2
3 import sys
4
5 from pylint.interfaces import IReporter
6 from pylint.reporters import BaseReporter
7 from logilab.common.ureports import TextWriter
8
9
10 class GUIReporter(BaseReporter):
11 """saves messages"""
12
13 __implements__ = IReporter
14 extension = ''
15
16 def __init__(self, gui, output=sys.stdout):
17 """init"""
18 BaseReporter.__init__(self, output)
19 self.gui = gui
20
21 def handle_message(self, msg):
22 """manage message of different type and in the context of path"""
23 self.gui.msg_queue.put(msg)
24
25 def _display(self, layout):
26 """launch layouts display"""
27 TextWriter().format(layout, self.out)
OLDNEW
« no previous file with comments | « third_party/pylint/pylint/reporters/__init__.py ('k') | third_party/pylint/pylint/reporters/html.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698