Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

gh-133722: Add Difflib theme to_colorize and 'color' option todifflib.unified_diff#133725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dougthor42 wants to merge21 commits intopython:main
base:main
Choose a base branch
Loading
fromdougthor42:difflib-color-gh133722
Open
Changes from1 commit
Commits
Show all changes
21 commits
Select commitHold shift + click to select a range
5c5b248
Add test case
dougthor42May 9, 2025
fdc0fa0
Add 'color' arg to difflib.unified_diff.
dougthor42May 9, 2025
fcdd7ab
Update docs and ACKs
dougthor42May 9, 2025
0e9b070
blurb
dougthor42May 9, 2025
7c31749
fixup to follow convention
dougthor42May 9, 2025
66475a2
Add 'Difflib' theme
dougthor42May 11, 2025
dbf0547
fixup tests
dougthor42May 11, 2025
a72012e
Switch to using themes. So easy!
dougthor42May 11, 2025
2a3d818
use 'next' in versionchanged docs
dougthor42May 11, 2025
252982e
turns out 'git diff' adds reset to the start and end of context lines
dougthor42May 11, 2025
3422fa7
Use GNU unified diff terms
dougthor42May 14, 2025
bffdd71
move class
dougthor42May 14, 2025
3255866
kw-only the 'color' arg
dougthor42May 14, 2025
c48a6ac
Doc formatting updates
dougthor42May 14, 2025
8ca50fa
Sort the things that are safe to sort without kw_only=True
dougthor42May 14, 2025
eb0e81e
Update what's new
dougthor42May 14, 2025
f7b34c3
Merge remote-tracking branch 'upstream/main' into difflib-color-gh133722
dougthor42May 14, 2025
fb092b0
fixup docs
dougthor42May 14, 2025
734b0bc
fixup docs
dougthor42May 20, 2025
8a10e40
Code review: docs, whatsnew, f-strings, news
dougthor42May 20, 2025
57b80d1
force_colorized
dougthor42May 20, 2025
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
PrevPrevious commit
NextNext commit
Update what's new
  • Loading branch information
@dougthor42
dougthor42 committedMay 14, 2025
commiteb0e81e6dfd92f4e43c74c0173df5d2e7958cfcb
14 changes: 11 additions & 3 deletionsDoc/whatsnew/3.15.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -65,6 +65,7 @@ Summary --- release highlights

.. PEP-sized items next.

* :ref:`argparse <whatsnew314-color-argparse>`,


New features
Expand All@@ -86,10 +87,17 @@ New modules
Improved modules
================

module_name
-----------
difflib
-------

.. _whatsnew314-color-argparse:

* Introduced the optional *color* parameter to :func:`difflib.unified_diff`,
enabling colored output similar to what ``git diff`` displays.
This can be controlled by :ref:`environment variables
<using-on-controlling-color>`.
(Contributed by Douglas Thor in :gh:`133725`.)

* TODO

.. Add improved modules above alphabetically, not here at the end.

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp