skaslev / gl3w

Simple OpenGL core profile loading
http://github.com/skaslev/gl3w
The Unlicense
709 stars 160 forks source link

Make gl3w_gen.py compatible with both Python 2 and Python 3 #19

Closed tombsar closed 9 years ago

tombsar commented 9 years ago

These changes make the gl3w_gen.py script run in both Python 2 (tested with 2.7.8) and Python 3 (tested with 3.4.2). Everything should also work in Python 2.6, according to the documentation.

Note: Some sources suggest using from __future__ import unicode_literals for string compatibility. I'm not sure which is better, but it might be worth investigating.

skaslev commented 9 years ago

Thanks for the patch.