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

Side by Side Diff: third_party/logilab/logilab/astroid/brain/py2mechanize.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 from astroid import MANAGER, register_module_extender
2 from astroid.builder import AstroidBuilder
3
4 def mechanize_transform():
5 return AstroidBuilder(MANAGER).string_build('''
6
7 class Browser(object):
8 def open(self, url, data=None, timeout=None):
9 return None
10 def open_novisit(self, url, data=None, timeout=None):
11 return None
12 def open_local_file(self, filename):
13 return None
14
15 ''')
16
17
18 register_module_extender(MANAGER, 'mechanize', mechanize_transform)
OLDNEW
« no previous file with comments | « third_party/logilab/logilab/astroid/brain/py2gi.py ('k') | third_party/logilab/logilab/astroid/brain/py2pytest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698