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

Side by Side Diff: third_party/logilab/astroid/brain/py2mechanize.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
« no previous file with comments | « third_party/logilab/astroid/brain/py2gi.py ('k') | third_party/logilab/astroid/brain/py2qt4.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 from astroid import MANAGER
2 from astroid.builder import AstroidBuilder
3
4 def mechanize_transform(module):
5 fake = 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 module.locals['Browser'] = fake.locals['Browser']
17
18 import py2stdlib
19 py2stdlib.MODULE_TRANSFORMS['mechanize'] = mechanize_transform
20
OLDNEW
« no previous file with comments | « third_party/logilab/astroid/brain/py2gi.py ('k') | third_party/logilab/astroid/brain/py2qt4.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698