[Python-Dev] 2to3 and reST text format
Victor Stinner
victor.stinner at haypocalc.com
Sat Sep 27 17:38:42 CEST 2008
Hi,
As I remember, last month 2to3 was able to fix my reST documentation
using "-d" option. But trunk version fails to parse my reST documents. Should
I run fsck on my brain or is it really a regression?
Short example:
-----------------
Title
=====
Some text before the example:
>>> print "Hello world!"
Hello world!
Verbatim block: ::
>>> print "Hello world!"
Hello world!
-----------------
The document can be checked with:
python2.5 -c "import doctest; doctest.testfile('test.rst')"
2to3 output:
-----------------
$ 2to3 -d test.rst
(...)
RefactoringTool: Can't parse test.rst: ParseError: bad input: type=28,
value='==', context=('', (2, 0))
(...)
-----------------
--
Victor Stinner aka haypo
http://www.haypocalc.com/blog/
More information about the Python-Dev
mailing list