clawpack / visclaw

Clawpack visualization tools
http://www.clawpack.org
BSD 3-Clause "New" or "Revised" License
29 stars 48 forks source link

Python 3 compatibility changes. #202

Closed quantheory closed 7 years ago

quantheory commented 7 years ago

These two changes seem to be necessary when using Python 3.

Tested with Python 3.4.5 from an Anaconda installation.

ketch commented 7 years ago

The reload part will still fail for Python 3.0 to 3.3, it seems:

http://stackoverflow.com/questions/961162/reloading-module-giving-nameerror-name-reload-is-not-defined

It's probably worthwhile to make it work with those versions too, since it's so simple.

quantheory commented 7 years ago

You caught me; I was being lazy and ignoring the old Python 3 versions. This last commit should fix those as well, though I don't actually have a machine with one of those versions on hand to test it.

ketch commented 7 years ago

Thanks!