<div dir="ltr"><div><div>David you have done a fantastic job!</div></div><div><br></div><div><br></div>Just letting you know that by making python 3 changes to rtImageTest.py, info.py, catch.py and expr.py, <div><br></div><div>I am now getting 89% tests passed, 54 tests failed out of 481!<br></div><div><br></div><div>In rtImageTest.py, Tkinter is now tkinter in Python 3.</div><div>For handling renamed libraries is code like this acceptable (it works in Python 2 and 3):<div>##################<br><div><div><div>try:</div><div>    # for Python2</div><div>    print('Trying Python2')</div><div>    import Tkinter as tk</div><div>    print('Python2 Ok')</div><div>except ImportError:</div><div>    # for Python3</div><div>    print('Trying Python3')</div><div>    import tkinter as tk</div><div>    print('Python3 Ok')</div><div>pythonTk = tk.Tk()</div></div><div>##################<div><div><br></div><div>The remaining failing tests are mainly related to the print statement, failures relating to string.find [in vtkMethodParser.py], no module named exceptions etc.<br><div><br></div><div>I need to do some thorough testing on  rtImageTest.py, info.py, catch.py, expr.py, vtkMethodParser.py for both Python 2.7 and Python 3.4</div><div><br></div><div>I am so impressed that these few changes have worked.</div><div><br></div><div>I'll try and get all the tests passing for Python 2 and Python 3 in the next week or so and create a merge request for review.</div><div><br></div><div>Regards</div><div>    Andrew</div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div></div></div></div></div></div></div>