This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients jan.koprowski, rhettinger, terry.reedy, tim.peters, ysj.ray
Date 2011-04-09.20:36:01
SpamBayes Score 3.6538667e-10
Marked as misclassified No
Message-id <1302381362.95.0.629365907417.issue11747@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks, Raymond. That file says (in the -u section) "If a range is empty, its beginning line number shall be the number of the line just before the range, or 0 if the empty range starts the file." The last clause says to me that gnu diff is right and that the 1,0 range of difflib.unified_diff is a bug.

I think we should add this link to the difflib doc (I am still thinking about place and wording).

News entry might be
Issue # 11747: Correct difflib.unified_diff empty file range from 1,0 to 0,0 in conformance with Single Unix Specification for diff output formats. Patch by ysj.ray.
History
Date User Action Args
2011-04-09 20:36:03terry.reedysetrecipients: + terry.reedy, tim.peters, rhettinger, ysj.ray, jan.koprowski
2011-04-09 20:36:02terry.reedysetmessageid: <1302381362.95.0.629365907417.issue11747@psf.upfronthosting.co.za>
2011-04-09 20:36:02terry.reedylinkissue11747 messages
2011-04-09 20:36:01terry.reedycreate