Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3a189af

Browse filesBrowse files
authored
gh-93096: Remove CLI interface for difflib (#131099)
1 parent 328f8b8 commit 3a189af
Copy full SHA for 3a189af

File tree

Expand file treeCollapse file tree

3 files changed

+2
-8
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+2
-8
lines changed

‎Doc/library/cmdline.rst

Copy file name to clipboardExpand all lines: Doc/library/cmdline.rst
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ The following modules have a command-line interface.
1111
* :mod:`code`
1212
* :ref:`compileall <compileall-cli>`
1313
* :mod:`cProfile`: see :ref:`profile <profile-cli>`
14-
* :ref:`difflib <difflib-interface>`
1514
* :ref:`dis <dis-cli>`
1615
* :mod:`doctest`
1716
* :mod:`!encodings.rot_13`

‎Lib/difflib.py

Copy file name to clipboardExpand all lines: Lib/difflib.py
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,10 +2060,3 @@ def restore(delta, which):
20602060
for line in delta:
20612061
if line[:2] in prefixes:
20622062
yield line[2:]
2063-
2064-
def _test():
2065-
import doctest, difflib
2066-
return doctest.testmod(difflib)
2067-
2068-
if __name__ == "__main__":
2069-
_test()
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Removed undocumented CLI ``python -m difflib``. Use ``python -m doctest
2+
Lib/difflib.py -v`` instead. Patch by Semyon Moroz.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.