[Python-checkins] IDLE: Fix docs URL in the About window (GH-28417)

miss-islington webhook-mailer at python.org
Sun Jul 31 17:11:42 EDT 2022


https://github.com/python/cpython/commit/ab444b7fc632d9ed25210aff6c45776c8c5f3554
commit: ab444b7fc632d9ed25210aff6c45776c8c5f3554
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022年07月31日T14:11:35-07:00
summary:
IDLE: Fix docs URL in the About window (GH-28417)
(cherry picked from commit 0f17a754d925345d67beff18897d86780436c506)
Co-authored-by: Serhiy Storchaka <storchaka at gmail.com>
files:
M Lib/idlelib/help_about.py
diff --git a/Lib/idlelib/help_about.py b/Lib/idlelib/help_about.py
index 9cb3ba78c50eb..a0085a40b980e 100644
--- a/Lib/idlelib/help_about.py
+++ b/Lib/idlelib/help_about.py
@@ -91,8 +91,9 @@ def create_widgets(self):
 email = Label(frame_background, text='email: idle-dev at python.org',
 justify=LEFT, fg=self.fg, bg=self.bg)
 email.grid(row=6, column=0, columnspan=2, sticky=W, padx=10, pady=0)
- docs = Label(frame_background, text="https://docs.python.org/"
- f"{version[:version.rindex('.')]}/library/idle.html",
+ docs_url = ("https://docs.python.org/%d.%d/library/idle.html" %
+ sys.version_info[:2])
+ docs = Label(frame_background, text=docs_url,
 justify=LEFT, fg=self.fg, bg=self.bg)
 docs.grid(row=7, column=0, columnspan=2, sticky=W, padx=10, pady=0)
 docs.bind("<Button-1>", lambda event: webbrowser.open(docs['text']))


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /