mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.14] GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418) (#142552)
GH-139436: Remove PDF and CHM from IDLE HelpSource (GH-140418)
(cherry picked from commit c5825ff4c9)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
cc705be468
commit
82ebdd207f
3 changed files with 2 additions and 18 deletions
|
|
@ -34,9 +34,8 @@
|
|||
# relevant settings from the default file.
|
||||
#
|
||||
# Additional help sources are listed in the [HelpFiles] section below
|
||||
# and should be viewable by a web browser (or the Windows Help viewer in
|
||||
# the case of .chm files). These sources will be listed on the Help
|
||||
# menu. The pattern, and two examples, are:
|
||||
# and should be viewable by a web browser. These sources will be listed
|
||||
# on the Help menu. The pattern, and two examples, are:
|
||||
#
|
||||
# <sequence_number = menu item;/path/to/help/source>
|
||||
# 1 = IDLE;C:/Programs/Python36/Lib/idlelib/help.html
|
||||
|
|
|
|||
|
|
@ -35,19 +35,6 @@
|
|||
TK_TABWIDTH_DEFAULT = 8
|
||||
darwin = sys.platform == 'darwin'
|
||||
|
||||
def _sphinx_version():
|
||||
"Format sys.version_info to produce the Sphinx version string used to install the chm docs"
|
||||
major, minor, micro, level, serial = sys.version_info
|
||||
# TODO remove unneeded function since .chm no longer installed
|
||||
release = f'{major}{minor}'
|
||||
release += f'{micro}'
|
||||
if level == 'candidate':
|
||||
release += f'rc{serial}'
|
||||
elif level != 'final':
|
||||
release += f'{level[0]}{serial}'
|
||||
return release
|
||||
|
||||
|
||||
class EditorWindow:
|
||||
from idlelib.percolator import Percolator
|
||||
from idlelib.colorizer import ColorDelegator, color_config
|
||||
|
|
|
|||
|
|
@ -289,8 +289,6 @@ def askfilename(self, filetypes, initdir, initfile): # htest #
|
|||
def browse_file(self):
|
||||
filetypes = [
|
||||
("HTML Files", "*.htm *.html", "TEXT"),
|
||||
("PDF Files", "*.pdf", "TEXT"),
|
||||
("Windows Help Files", "*.chm"),
|
||||
("Text Files", "*.txt", "TEXT"),
|
||||
("All Files", "*")]
|
||||
path = self.pathvar.get()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue