Commit e8cd6e5b authored by Martin v. Löwis's avatar Martin v. Löwis

Convert tcl_version to str before comparing. Fixes #729317.

parent 2f3981f3
...@@ -1567,7 +1567,8 @@ class Tk(Misc, Wm): ...@@ -1567,7 +1567,8 @@ class Tk(Misc, Wm):
raise RuntimeError, \ raise RuntimeError, \
"tk.h version (%s) doesn't match libtk.a version (%s)" \ "tk.h version (%s) doesn't match libtk.a version (%s)" \
% (_tkinter.TK_VERSION, tk_version) % (_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: if tcl_version != _tkinter.TCL_VERSION:
raise RuntimeError, \ raise RuntimeError, \
"tcl.h version (%s) doesn't match libtcl.a version (%s)" \ "tcl.h version (%s) doesn't match libtcl.a version (%s)" \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment