Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c8bf3b commit a4f5fa5Copy full SHA for a4f5fa5
1 file changed
setupext.py
@@ -848,7 +848,10 @@ def query_tcltk():
848
849
def parse_tcl_config(tcl_lib_dir, tk_lib_dir):
850
try:
851
- import Tkinter
+ if sys.version_info[0] < 3:
852
+ import Tkinter
853
+ else:
854
+ import tkinter as Tkinter
855
except ImportError:
856
return None
857
@@ -875,7 +878,7 @@ def get_var(file, varname):
875
878
executable="/bin/sh",
876
879
stdout=subprocess.PIPE)
877
880
result = p.communicate()[0]
- return result
881
+ return result.decode('ascii')
882
883
tcl_lib_dir = get_var(tcl_config, 'TCL_LIB_SPEC').split()[0][2:].strip()
884
tcl_inc_dir = get_var(tcl_config, 'TCL_INCLUDE_SPEC')[2:].strip()
0 commit comments