David White added the comment:
I've uploaded the patches. Beware, this is my first attempt to contribute.
--
___
Python tracker
<http://bugs.python.org/is
Changes by David White :
--
resolution: -> fixed
Added file: http://bugs.python.org/file20319/increment_linenos_3k.patch
___
Python tracker
<http://bugs.python.org/issu
Changes by David White :
Added file: http://bugs.python.org/file20318/increment_linenos_31.patch
___
Python tracker
<http://bugs.python.org/issue10869>
___
___
Python-bug
Changes by David White :
--
keywords: +patch
Added file: http://bugs.python.org/file20317/increment_linenos_27.patch
___
Python tracker
<http://bugs.python.org/issue10
New submission from David White :
When using ast.increment_lineno(), it visits the root node twice. Therefore if
the root node contains the lineno attribute, it is incremented twice. (Often,
the root node will not have a lineno attribute, so there is no effect. This is
why the current test