Skip to content

Commit bceaa99

Browse files
Terry's review
1 parent c72bb2c commit bceaa99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/idlelib/editor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434
# The default tab setting for a Text widget, in average-width characters.
3535
TK_TABWIDTH_DEFAULT = 8
36-
_py_version = ' (%s)' % platform.python_version()
3736
darwin = sys.platform == 'darwin'
3837

3938
def _sphinx_version():
@@ -1008,15 +1007,16 @@ def open_recent_file(fn_closure=file_name):
10081007
def saved_change_hook(self):
10091008
short = self.short_title()
10101009
long = self.long_title()
1010+
_py_version = ' (%s)' % platform.python_version()
10111011
if short and long and not macosx.isCocoaTk():
10121012
# Don't use both values on macOS because
10131013
# that doesn't match platform conventions.
10141014
title = short + " - " + long + _py_version
10151015
elif short:
10161016
if short == "IDLE Shell":
1017-
title = short + _py_version
1017+
title = short + platform.python_version()
10181018
else:
1019-
title = short
1019+
title = short + _py_version
10201020
elif long:
10211021
title = long
10221022
else:

0 commit comments

Comments
 (0)