sebastianprobst / resonator_tools

GNU General Public License v2.0
40 stars 56 forks source link

Python 3 compatibility #3

Closed gdold closed 6 years ago

gdold commented 6 years ago

Minor changes to make code compatibile with both Python 2 and Python 3.

To maintain compatibility with old and new, please use print() function and absolute imports in future commits. You can also run code through the 2to3 command line utility to locate incompatible commands.

Changes to matplotlib handling have not been included in this pull request as I cannot test backward compatibility. Some warnings may appear in matplotlib >=2.0 but plotting still behaves as expected.