This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: refactor.py can lose indentation for relative imports
Type: Stage:
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.0
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: collinwinter Nosy List: benjamin.peterson, collinwinter, rupole
Priority: normal Keywords:

Created on 2008-08-09 18:16 by rupole, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg70947 - (view) Author: Roger Upole (rupole) Date: 2008-08-09 18:16
Here's an excerpt from the output when run with --verbose.

@@ -138,7 +136,7 @@

        def _MakeColorizer(self):
                ext = os.path.splitext(self.GetDocument().GetPathName())
-               import formatter
+from . import formatter
                return formatter.BuiltinPythonSourceFormatter(self, ext)
msg70954 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-08-10 00:26
What version of 2to3 are you using? AFAIK, this has been fixed in the trunk.
msg70956 - (view) Author: Roger Upole (rupole) Date: 2008-08-10 01:45
I was using 3.0b2.
The output is correct with latest updates,
sorry for the trouble.
History
Date User Action Args
2022-04-11 14:56:37adminsetgithub: 47784
2008-08-10 01:45:53benjamin.petersonsetstatus: open -> closed
resolution: out of date
2008-08-10 01:45:09rupolesetmessages: + msg70956
2008-08-10 00:26:36benjamin.petersonsetnosy: + benjamin.peterson
messages: + msg70954
2008-08-09 18:16:12rupolecreate