summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-08-01 04:11:05 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-08-01 04:11:05 (GMT)
commit0d023db38623c7163f8264fecd4f8f881b4fccee (patch)
tree9a8e20cc95bb5374a97f76002ec2a353bb2f12cf /Misc
parent2b112a6bb3911b07b9b45404edaf99c0150124e5 (diff)
downloadcpython-0d023db38623c7163f8264fecd4f8f881b4fccee.zip
cpython-0d023db38623c7163f8264fecd4f8f881b4fccee.tar.gz
cpython-0d023db38623c7163f8264fecd4f8f881b4fccee.tar.bz2
Merged revisions 83381 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint ................ r83381 | r.david.murray | 2010-08-01 00:04:03 -0400 (Sun, 01 Aug 2010) | 23 lines Merged revisions 83380 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83380 | r.david.murray | 2010-07-31 23:31:09 -0400 (Sat, 31 Jul 2010) | 17 lines #8620: Cmd no longer truncates last character if stdin ends without newline Cmd used to blindly chop off the last character of every input line. If the input reached EOF and there was no final new line, it would truncate the last character of the last command. This fix instead strips trailing \r\n from the input lines. While this is a small behavior change, it should not break any working code, since feeding a '\r\n' terminated file to Cmd would previously leave the \r's on the lines, resulting in failed command execution. I wrote the unit test in preparation for a PyOhio TeachMe session run by Catherine Devlin, and we can thank Catherine and the PyOhio session attendees for the fix. I've added Catherine to the Acks file for organizing and leading the TeachMe session, out of which we will hopefully get some new contributors. ........ ................
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS3
2 files changed, 4 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 96523fe..2f6055e 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -170,6 +170,7 @@ Vincent Delft
Arnaud Delobelle
Erik Demaine
Roger Dev
+Catherine Devlin
Raghuram Devarakonda
Scott Dial
Toby Dickenson
diff --git a/Misc/NEWS b/Misc/NEWS
index 307c332..56b289e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -84,6 +84,9 @@ C-API
Library
-------
+- Issue #8620: when a Cmd is fed input that reaches EOF without a final
+ newline, it no longer truncates the last character of the last command line.
+
- Issue #7066: archive_util.make_archive now restores the cwd if an error is
raised. Initial patch by Ezio Melotti.