[issue7585] [patch] difflib should separate filename from timestamp with tab
anatoly techtonik
report at bugs.python.org
Tue Dec 29 11:28:52 CET 2009
anatoly techtonik <techtonik at gmail.com> added the comment:
Filenames may contain spaces too.
--- handle dis Sun Dec 27 16:08:28 2009
--- или вот это пон, дек 27 16:08:28 2009
The last line is space separated filename and date in Russian locale.
Patch tool should handle that, but as you may see it is not always
possible. That's why difflib modification with \t separator will greatly
improve interoperability of difflib patches regardless of timestamp
format.
Stripping trailing whitespace when there is no timestamp serves the same
purpose. We can assume that patch tools are perfect, but I wouldn't
write my tool if that was true, so its better to be friendly on difflib
side and generate the output that won't require more work than necessary
to use it.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7585>
_______________________________________
More information about the Python-bugs-list
mailing list