New submission from Éric Araujo <mer...@netwok.org>:

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 need to be modified:
RefactoringTool: test


The output should be converted too.

Tested with 2.6.4+ (Debian’s), 2.7a2+ and 3.2a0.

Kind regards

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 98620
nosy: Merwok
severity: normal
status: open
title: 2to3 does not convert output lines in doctests
versions: Python 2.6, Python 2.7, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7822>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to