[issue8620] wrong truncation of last line in cmd.Cmd

R. David Murray report at bugs.python.org
Sun Aug 1 06:16:35 CEST 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

Éric: thanks for spotting the whitespace before I got smacked by the commit hook.  As for \r\n, our thought was that would be a feature (universal newline support), but upon reflection the current fix could actually break working code if by some weird chance someone is feeding \r terminated files to Cmd, while using \r\n should not break anything, since a \r\n terminated file would currently not work (since the \r would be left on the lines).  So I've changed the fix to strip '\r\n' in the commit (py3k r83380, 2.7 r83381, 2.5 r83382, 3.1 r83383).

----------
assignee:  -> r.david.murray
resolution:  -> fixed
stage: needs patch -> commit review
status: open -> closed
versions: +Python 2.6, Python 2.7, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8620>
_______________________________________


More information about the Python-bugs-list mailing list