Use correct argument names in the py2stdlib brain urlparse module. Closes #123062

authorTorsten Marek <tmarek@google.com>
changeset143fabd33f9e
branchstable
phasepublic
hiddenno
parent revision#035aa5b0ce0d Added tag logilab-astng-debian-version-0.24.2-1 for changeset c48aabd3865a
child revision#7fdc570abc61 Add missing modules in py2stdlib brain hashlib. Closes #123056
files modified by this revision
ChangeLog
brain/py2stdlib.py
# HG changeset patch
# User Torsten Marek <tmarek@google.com>
# Date 1364383443 -3600
# Wed Mar 27 12:24:03 2013 +0100
# Branch stable
# Node ID 143fabd33f9e503bfdb46db850d6968e233caf70
# Parent 035aa5b0ce0d6ce68ed93a8ca8ff799e20f55a74
Use correct argument names in the py2stdlib brain urlparse module. Closes #123062

diff --git a/ChangeLog b/ChangeLog
@@ -1,10 +1,13 @@
1  Change log for the astng package
2  ================================
3 
4 -  --
5 +--
6 
7 +    * #123062 [pylint-brain]: Use correct names for keywords for urlparse
8 +
9 +2013-02-27  -- 0.24.2
10      * pylint-brain: more subprocess.Popen faking (see #46273)
11      * #109562 [jython]: java modules have no __doc__, causing crash
12      * #120646 [py3]: fix for python3.3 _ast changes which may cause crash
13      * #109988 [py3]: test fixes
14 
diff --git a/brain/py2stdlib.py b/brain/py2stdlib.py
@@ -97,11 +97,11 @@
15 
16 
17  def urlparse_transform(module):
18      fake = ASTNGBuilder(MANAGER).string_build('''
19 
20 -def urlparse(urlstring, default_scheme='', allow_fragments=True):
21 +def urlparse(url, scheme='', allow_fragments=True):
22      return ParseResult()
23 
24  class ParseResult(object):
25      def __init__(self):
26          self.scheme = ''