Éric Araujo added the comment:
> to know that it is a Python expression that needs to be converted.
Oh, of course. I have made two assumptions here: output lines are not
always the repr of a Python object, and the repr is not always a valid
Python expression.
I’ll have to subclass build_2to3
Benjamin Peterson added the comment:
The output line can be anything, so it's impossible for 2to3 to know that it is
a Python expression that needs to be converted.
--
nosy: +benjamin.peterson
resolution: -> wont fix
status: open -> closed
___
Pyth
New submission from Éric Araujo :
Howdy
I think there is a bug with 2to3’s doctest conversion:
$ echo ">>> u'éric'" > test
$ echo "u'éric'" >> test
$ 2to3 -d test -f unicode
--- test (original)
+++ test (refactored)
@@ -1,3 +1,3 @@
->>> u'éric'
+>>> 'éric'
u'éric'
RefactoringTool: Files that