mirror of
https://github.com/python/cpython.git
synced 2026-10-28 10:25:05 +08:00
gh-93096: Remove CLI interface for difflib (#131099)
This commit is contained in:
1 parent
328f8b8856
commit
3a189af4b2
3 files changed
+2
-8
No files matched your search
@@ -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.
|
||||
Reference in new issue
Block a user