Commit a8b44883 authored by David Gobbi's avatar David Gobbi Committed by Kitware Robot
Browse files

Merge topic 'python-tk-loading'

3f579152

 Fix vtkLoadPythonTkWidgets error with Python 2.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1215
parents 230500c8 3f579152
Pipeline #7030 failed with stage
......@@ -61,6 +61,8 @@ def vtkLoadPythonTkWidgets(interp):
# if python 3, there is no separate "unicode" type
if sys.hexversion >= 0x03000000:
unicode = str
else:
unicode = sys.modules['__builtin__'].unicode
# attempt to load
for path in pathlist:
......
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