Skip to content

Commit 032facd

Browse files
committed
Remove PDF and CHM from IDLE HelpSource
1 parent fe4b602 commit 032facd

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

Lib/idlelib/config-main.def

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@
3434
# relevant settings from the default file.
3535
#
3636
# Additional help sources are listed in the [HelpFiles] section below
37-
# and should be viewable by a web browser (or the Windows Help viewer in
38-
# the case of .chm files). These sources will be listed on the Help
39-
# menu. The pattern, and two examples, are:
37+
# and should be viewable by a web browser. These sources will be listed
38+
# on the Help menu. The pattern, and two examples, are:
4039
#
4140
# <sequence_number = menu item;/path/to/help/source>
4241
# 1 = IDLE;C:/Programs/Python36/Lib/idlelib/help.html

Lib/idlelib/editor.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,6 @@
3535
TK_TABWIDTH_DEFAULT = 8
3636
darwin = sys.platform == 'darwin'
3737

38-
def _sphinx_version():
39-
"Format sys.version_info to produce the Sphinx version string used to install the chm docs"
40-
major, minor, micro, level, serial = sys.version_info
41-
# TODO remove unneeded function since .chm no longer installed
42-
release = f'{major}{minor}'
43-
release += f'{micro}'
44-
if level == 'candidate':
45-
release += f'rc{serial}'
46-
elif level != 'final':
47-
release += f'{level[0]}{serial}'
48-
return release
49-
50-
5138
class EditorWindow:
5239
from idlelib.percolator import Percolator
5340
from idlelib.colorizer import ColorDelegator, color_config

Lib/idlelib/query.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,6 @@ def askfilename(self, filetypes, initdir, initfile): # htest #
289289
def browse_file(self):
290290
filetypes = [
291291
("HTML Files", "*.htm *.html", "TEXT"),
292-
("PDF Files", "*.pdf", "TEXT"),
293-
("Windows Help Files", "*.chm"),
294292
("Text Files", "*.txt", "TEXT"),
295293
("All Files", "*")]
296294
path = self.pathvar.get()

0 commit comments

Comments
 (0)