gh-93096: Remove CLI interface for difflib
(#131099)
This commit is contained in:
parent
328f8b8856
commit
3a189af4b2
@ -11,7 +11,6 @@ The following modules have a command-line interface.
|
|||||||
* :mod:`code`
|
* :mod:`code`
|
||||||
* :ref:`compileall <compileall-cli>`
|
* :ref:`compileall <compileall-cli>`
|
||||||
* :mod:`cProfile`: see :ref:`profile <profile-cli>`
|
* :mod:`cProfile`: see :ref:`profile <profile-cli>`
|
||||||
* :ref:`difflib <difflib-interface>`
|
|
||||||
* :ref:`dis <dis-cli>`
|
* :ref:`dis <dis-cli>`
|
||||||
* :mod:`doctest`
|
* :mod:`doctest`
|
||||||
* :mod:`!encodings.rot_13`
|
* :mod:`!encodings.rot_13`
|
||||||
|
@ -2060,10 +2060,3 @@ def restore(delta, which):
|
|||||||
for line in delta:
|
for line in delta:
|
||||||
if line[:2] in prefixes:
|
if line[:2] in prefixes:
|
||||||
yield line[2:]
|
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…
x
Reference in New Issue
Block a user