Convert tcl_version to str before comparing. Fixes #729317.

This commit is contained in:
Martin v. Löwis 2003-05-24 11:37:15 +00:00
parent 8225103d2d
commit 5489597f56
1 changed files with 2 additions and 1 deletions

View File

@ -1567,7 +1567,8 @@ class Tk(Misc, Wm):
raise RuntimeError, \
"tk.h version (%s) doesn't match libtk.a version (%s)" \
% (_tkinter.TK_VERSION, tk_version)
tcl_version = self.tk.getvar('tcl_version')
# Under unknown circumstances, tcl_version gets coerced to float
tcl_version = str(self.tk.getvar('tcl_version'))
if tcl_version != _tkinter.TCL_VERSION:
raise RuntimeError, \
"tcl.h version (%s) doesn't match libtcl.a version (%s)" \