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

Side by Side Diff: third_party/logilab/logilab/astroid/brain/py2qt4.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 """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, register_module_extender
9 from astroid.builder import AstroidBuilder
10
11
12 def pyqt4_qtcore_transform():
13 return AstroidBuilder(MANAGER).string_build('''
14
15 def SIGNAL(signal_name): pass
16
17 class QObject(object):
18 def emit(self, signal): pass
19 ''')
20
21
22 register_module_extender(MANAGER, 'PyQt4.QtCore', pyqt4_qtcore_transform)
OLDNEW
« no previous file with comments | « third_party/logilab/logilab/astroid/brain/py2pytest.py ('k') | third_party/logilab/logilab/astroid/brain/py2stdlib.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698