New submission from Mark Hammond <[EMAIL PROTECTED]>: The following source file: """ import _winreg _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, "foo") """
results in the following "patch": -import _winreg -_winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, "foo") +import winreg +winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, "foo") Note the first param has not been converted correctly. This is probably due to it following the paren, as using the same symbol in a local variable works correctly. ---------- components: 2to3 (2.x to 3.0 conversion tool) messages: 74014 nosy: mhammond priority: high severity: normal status: open title: import fixer misses some symbols type: behavior _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3994> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com