Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove CLI interface for difflib
  • Loading branch information
donbarbos committed Mar 11, 2025
commit 1e854ffb61bf178f1442ae8588f59f508c8079e5
1 change: 0 additions & 1 deletion Doc/library/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
7 changes: 0 additions & 7 deletions Lib/difflib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Loading