mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Merged revisions 76160-76161,76250,76252,76447,76506 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r76160 | benjamin.peterson | 2009-11-08 18:53:48 -0600 (Sun, 08 Nov 2009) | 1 line undeprecate the -p option; it's useful for converting python3 sources ........ r76161 | benjamin.peterson | 2009-11-08 19:05:37 -0600 (Sun, 08 Nov 2009) | 1 line simplify condition ........ r76250 | benjamin.peterson | 2009-11-13 16:56:48 -0600 (Fri, 13 Nov 2009) | 1 line fix handling of a utf-8 bom #7313 ........ r76252 | benjamin.peterson | 2009-11-13 16:58:36 -0600 (Fri, 13 Nov 2009) | 1 line remove pdb turd ........ r76447 | benjamin.peterson | 2009-11-22 18:17:40 -0600 (Sun, 22 Nov 2009) | 1 line #7375 fix nested transformations in fix_urllib ........ r76506 | benjamin.peterson | 2009-11-24 18:34:31 -0600 (Tue, 24 Nov 2009) | 1 line use generator expressions in any() ........
This commit is contained in:
parent
2ed8813f22
commit
42d26d94cc
10 changed files with 71 additions and 53 deletions
|
@ -1753,6 +1753,8 @@ class Test_urllib(FixerTestCase):
|
|||
for old, changes in self.modules.items():
|
||||
for new, members in changes:
|
||||
for member in members:
|
||||
new_import = ", ".join([n for (n, mems)
|
||||
in self.modules[old]])
|
||||
b = """
|
||||
import %s
|
||||
foo(%s.%s)
|
||||
|
@ -1760,9 +1762,16 @@ class Test_urllib(FixerTestCase):
|
|||
a = """
|
||||
import %s
|
||||
foo(%s.%s)
|
||||
""" % (", ".join([n for (n, mems)
|
||||
in self.modules[old]]),
|
||||
new, member)
|
||||
""" % (new_import, new, member)
|
||||
self.check(b, a)
|
||||
b = """
|
||||
import %s
|
||||
%s.%s(%s.%s)
|
||||
""" % (old, old, member, old, member)
|
||||
a = """
|
||||
import %s
|
||||
%s.%s(%s.%s)
|
||||
""" % (new_import, new, member, new, member)
|
||||
self.check(b, a)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue