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.

Title: 2to3 breaks relative imports
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, brian.curtin, jyasskin
Priority: normal Keywords: patch

Created on 2010-04-28 01:18 by jyasskin, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
2to3_fix.patch jyasskin, 2010-04-28 01:18
Messages (4)
msg104392 - (view) Author: Jeffrey Yasskin (jyasskin) * (Python committer) Date: 2010-04-28 01:18
2to3, at least the version in the python-2 tree, currently turns

  from . import refactor


  from .. import refactor

which breaks the transformation of 2to3 itself.  The attached patch fixes this and tests it.

Once someone's looked this over, where should I commit it? I'm not sure where 2to3 actually lives anymore.
msg104394 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-04-28 01:31
I believe sandbox/trunk/2to3 is the right spot. The patch seems ok to me, but Benjamin will probably want a look.
msg104396 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-04-28 01:39
Please use double quotes and unicode literals. Otherwise, it's fine.
msg104407 - (view) Author: Jeffrey Yasskin (jyasskin) * (Python committer) Date: 2010-04-28 04:08
Thanks! Committed as r80573.
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52799
2010-05-04 12:12:49r.david.murraylinkissue8608 superseder
2010-04-28 04:08:41jyasskinsetstatus: open -> closed
keywords: - needs review
messages: + msg104407

stage: patch review -> resolved
2010-04-28 01:39:47benjamin.petersonsetkeywords: patch, patch, needs review

messages: + msg104396
2010-04-28 01:31:47brian.curtinsetkeywords: patch, patch, needs review
nosy: + brian.curtin, benjamin.peterson
messages: + msg104394

2010-04-28 01:18:29jyasskincreate