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

Side by Side Diff: third_party/logilab/astroid/brain/py2qt4.py

Issue 739393004: Revert "Revert "pylint: upgrade to 1.3.1"" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 6 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 """Astroid hooks for the Python 2 qt4 module.
2
3 Currently help understanding of :
4
5 * PyQT4.QtCore
6 """
7
8 from astroid import MANAGER
9 from astroid.builder import AstroidBuilder
10
11
12 def pyqt4_qtcore_transform(module):
13 fake = AstroidBuilder(MANAGER).string_build('''
14
15 def SIGNAL(signal_name): pass
16
17 class QObject(object):
18 def emit(self, signal): pass
19 ''')
20 for klass in ('QObject',):
21 module.locals[klass] = fake.locals[klass]
22
23
24 import py2stdlib
25 py2stdlib.MODULE_TRANSFORMS['PyQt4.QtCore'] = pyqt4_qtcore_transform
OLDNEW
« no previous file with comments | « third_party/logilab/astroid/brain/py2mechanize.py ('k') | third_party/logilab/astroid/brain/py2stdlib.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698