]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-97669: Move difflib examples to Doc/includes/ (#97964)
authorVictor Stinner <vstinner@python.org>
Fri, 7 Oct 2022 17:57:48 +0000 (19:57 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Oct 2022 17:57:48 +0000 (10:57 -0700)
commit002252c4ade6a5aeb7a397776dbe3c1de0740e84
tree550b94103dfcdef8932141fcfed964b8c59d2ae7
parent24a4b341586be12569e3804b5f1356e745d1f55f
gh-97669: Move difflib examples to Doc/includes/ (#97964)

Remove diff.py and ndiff.py scripts of Tools/scripts/: move them to
Doc/includes/.

* diff.py and ndiff.py files are no longer executable. Remove also
  their shebang ("#!/usr/bin/env python3").
* Remove the -profile command from ndiff.py to simply the code.
* Remove ndiff.py copyright and history command. The Python
  documentation examples are distributed under the "Zero Clause BSD
  License".
Doc/includes/diff.py [moved from Tools/scripts/diff.py with 98% similarity, mode: 0644]
Doc/includes/ndiff.py [moved from Tools/scripts/ndiff.py with 80% similarity, mode: 0644]
Doc/library/difflib.rst