Ruslan Mstoi <rms...@gmail.com> added the comment: OK, finally got some time to make a patch. The fix is to seek the beginning of the comment before calling readline. That way the next line won't be deleted.
Also, provided a test case for this issue in the patch. ---------- keywords: +patch Added file: http://bugs.python.org/file22013/issue12009_patch.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12009> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com