Skip to content

Commit a654956

Browse files
committed
Changed version display of Tkinter
Python build from mercurial repository does not expand $Revision:$ keyword, so .split[-2] results in ValueError.
1 parent f1388ee commit a654956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setupext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def check_for_tk():
774774

775775
if gotit:
776776
print_status("Tkinter", "Tkinter: %s, Tk: %s, Tcl: %s" %
777-
(Tkinter.__version__.split()[-2], Tkinter.TkVersion, Tkinter.TclVersion))
777+
(Tkinter.__version__, Tkinter.TkVersion, Tkinter.TclVersion))
778778
else:
779779
print_status("Tkinter", "no")
780780
if explanation is not None:

0 commit comments

Comments
 (0)