Keith Gray added the comment:
I took a look at Tools/scripts/diff.py and it looks like it got converted to
use argparse 9 months ago. I think I should be able to just include that in the
difflib documentation directly.
My next question is which branches need to have this changed? Do I just
Keith Gray added the comment:
Here is the patch. I have tested it against tip. Let me know if you need
anything else.
--
keywords: +patch
Added file: http://bugs.python.org/file39268/issue-24109.patch
___
Python tracker rep...@bugs.python.org
http
New submission from Keith Gray:
The documentation for optparse states it has been deprecated in favor of
argparse since 2.7. However, the library documentation for difflib still uses
optparse in the example.
https://docs.python.org/2/library/difflib.html#a-command-line-interface-to-difflib