mirror of
https://github.com/python/cpython.git
synced 2025-08-17 15:21:26 +00:00
Merged revisions 77310-77311 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77310 | antoine.pitrou | 2010-01-05 01:22:44 +0200 (Tue, 05 Jan 2010) | 4 lines Issue #7092: Fix the DeprecationWarnings emitted by the standard library when using the -3 flag. Patch by Florent Xicluna. ........ r77311 | antoine.pitrou | 2010-01-05 01:28:16 +0200 (Tue, 05 Jan 2010) | 3 lines Kill a couple of "<>" ........
This commit is contained in:
parent
8c7fe2d6f9
commit
8dc04a4dd1
19 changed files with 95 additions and 90 deletions
|
@ -900,10 +900,10 @@ class CodeGenerator:
|
|||
level = node.level
|
||||
if level == 0 and not self.graph.checkFlag(CO_FUTURE_ABSIMPORT):
|
||||
level = -1
|
||||
fromlist = map(lambda (name, alias): name, node.names)
|
||||
fromlist = tuple(name for (name, alias) in node.names)
|
||||
if VERSION > 1:
|
||||
self.emit('LOAD_CONST', level)
|
||||
self.emit('LOAD_CONST', tuple(fromlist))
|
||||
self.emit('LOAD_CONST', fromlist)
|
||||
self.emit('IMPORT_NAME', node.modname)
|
||||
for name, alias in node.names:
|
||||
if VERSION > 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue