Skip to content
Merged
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
Prev Previous commit
Fix import, initialization.
  • Loading branch information
terryjreedy committed Aug 11, 2022
commit b1ca323490cb6a9fb35762c4fb153a1176f612c0
4 changes: 2 additions & 2 deletions Lib/idlelib/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import tokenize
import traceback
import webbrowser
import winreg

from tkinter import *
from tkinter.font import Font
Expand Down Expand Up @@ -87,7 +86,8 @@ def __init__(self, flist=None, filename=None, key=None, root=None):
dochome = os.path.join(basepath, pyver,
'Doc', 'index.html')
elif sys.platform[:3] == 'win':
docfile = "Dummy^file&name*that(should)fail-isfile#check"
import winreg # Windows only, block only executed once.
docfile = ''
KEY = (rf"Software\Python\PythonCore\{sys.winver}"
r"\Help\Main Python Documentation")
try:
Expand Down