summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-04-12 16:35:19 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-04-12 16:35:19 (GMT)
commit1a14d3d169a34293f416abe4a41e4141c4e07965 (patch)
tree66c9de2d714533b17be4f16c7326da7771242c0d /Misc
parent9aca91d7d73121a73cdf5d742a8b6cae30989f50 (diff)
downloadcpython-1a14d3d169a34293f416abe4a41e4141c4e07965.zip
cpython-1a14d3d169a34293f416abe4a41e4141c4e07965.tar.gz
cpython-1a14d3d169a34293f416abe4a41e4141c4e07965.tar.bz2
Issue #7585: use tab between components in unified and context diff headers.
Instead of spaces between the filename and date (or whatever the string is that follows the filename, if any) use tabs. This is what the unix 'diff' command does, for example, and difflib was intended to follow the 'standard' way of doing diffs. This improves compatibility with patch tools. The docs and examples are also changed to recommended that the date format used be the ISO 8601 format, which is what modern diff tools emit by default. Patch by Anatoly Techtonik.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS4
2 files changed, 5 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index b0e89ca..2a031e7 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -747,6 +747,7 @@ Christian Tanzer
Steven Taschuk
Monty Taylor
Amy Taylor
+Anatoly Techtonik
Tobias Thelen
James Thomas
Robin Thomas
diff --git a/Misc/NEWS b/Misc/NEWS
index c95076e..d2b907e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -15,6 +15,10 @@ Core and Builtins
Library
-------
+- Issue #7585: difflib context and unified diffs now place a tab between
+ filename and date, conforming to the 'standards' they were originally
+ designed to follow. This improves compatibility with patch tools.
+
- Issue #7472: Fixed typo in email.encoders module; messages using ISO-2022
character sets will now consistently use a Content-Transfer-Encoding of
7bit rather than sometimes being marked as 8bit.