nengo / nengo-gui

Nengo interactive visualizer
Other
97 stars 38 forks source link

Handle Python 2/3 compat #1022

Closed tbekolay closed 4 years ago

tbekolay commented 4 years ago

Previously, we were using Nengo core's Python 2/3 compatibility module, but Nengo core has dropped Python 2 support and subsequently removed nengo.utils.compat. Since we have not yet dropped Python 2 support, we add a compat.py module to handle the things that we use in Nengo GUI.

This PR is required for supporting Nengo 3.0.0. With this PR, the GUI seems to work, though I haven't done extensive testing.