nwhitehead / pyfluidsynth

Python bindings for FluidSynth
GNU Lesser General Public License v2.1
198 stars 56 forks source link

Ensure python 2/3 compatibility #6

Closed matael closed 7 years ago

matael commented 7 years ago

Make sure c-binding expecting char* are passed byte strings (b"", a.encode())

Move from dict.iteritems() to future.utils.iteritems(dict) for py2/3 compat.

Convert strings to bytes for settings

work towards python2/3 compat

Fix error in device name handling for c-binding


Most of these changes were made in eed1224f27 and 6cdb00c16fa but reverted inadvertently in 650f872c85e. I just put them back and checked it imported nicely on 2 and 3.