gh-93096: Remove CLI interface for difflib (#131099)

This commit is contained in:
donBarbos 2025-03-13 15:22:16 +04:00 committed by GitHub
parent 328f8b8856
commit 3a189af4b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 8 deletions

View file

@ -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`

View file

@ -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()

View file

@ -0,0 +1,2 @@
Removed undocumented CLI ``python -m difflib``. Use ``python -m doctest
Lib/difflib.py -v`` instead. Patch by Semyon Moroz.