Issue 8553: 2to3 breaks relative imports (original) (raw)

Issue8553

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

Files
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 into 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.
History
Date User Action Args
2022-04-11 14:57:00 admin set github: 52799
2010-05-04 12:12:49 r.david.murray link issue8608 superseder
2010-04-28 04:08:41 jyasskin set status: open -> closedkeywords: - needs reviewmessages: + stage: patch review -> resolved
2010-04-28 01:39:47 benjamin.peterson set keywords:patch, patch, needs reviewmessages: +
2010-04-28 01:31:47 brian.curtin set keywords:patch, patch, needs reviewnosy: + brian.curtin, benjamin.petersonmessages: +
2010-04-28 01🔞29 jyasskin create