apmorton / pyhidapi

hidapi bindings in ctypes
MIT License
111 stars 42 forks source link

Python 3 support #11

Closed NZSmartie closed 8 years ago

NZSmartie commented 8 years ago

Not much needed to change, just added parentheses to the print statements for python 3 to be happy.

I also wrapped up the failed ctypes.windll.LoadLibrary to raise a ImportError instead, since on Linux, it raises an unhelpful AttributeError when HIDAPI isn't installed on the system.

NZSmartie commented 8 years ago

No worries