Skip to content

Commit 74036e5

Browse files
gpsheadclaude
andcommitted
[cleanup] Remove unused idlelib.editor._sphinx_version()
The `_sphinx_version()` function is no longer needed since CHM (Compiled HTML Help) documentation files are no longer installed. This removes the dead code as indicated by the TODO comment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8be3b2f commit 74036e5

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Lib/idlelib/editor.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +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-
5038

5139
class EditorWindow:
5240
from idlelib.percolator import Percolator

0 commit comments

Comments
 (0)