mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-93096: Remove CLI interface for difflib
(#131099)
This commit is contained in:
parent
328f8b8856
commit
3a189af4b2
3 changed files with 2 additions and 8 deletions
|
@ -11,7 +11,6 @@ The following modules have a command-line interface.
|
|||
* :mod:`code`
|
||||
* :ref:`compileall <compileall-cli>`
|
||||
* :mod:`cProfile`: see :ref:`profile <profile-cli>`
|
||||
* :ref:`difflib <difflib-interface>`
|
||||
* :ref:`dis <dis-cli>`
|
||||
* :mod:`doctest`
|
||||
* :mod:`!encodings.rot_13`
|
||||
|
|
|
@ -2060,10 +2060,3 @@ def restore(delta, which):
|
|||
for line in delta:
|
||||
if line[:2] in prefixes:
|
||||
yield line[2:]
|
||||
|
||||
def _test():
|
||||
import doctest, difflib
|
||||
return doctest.testmod(difflib)
|
||||
|
||||
if __name__ == "__main__":
|
||||
_test()
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Removed undocumented CLI ``python -m difflib``. Use ``python -m doctest
|
||||
Lib/difflib.py -v`` instead. Patch by Semyon Moroz.
|
Loading…
Add table
Add a link
Reference in a new issue