kmonsoor / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

compatibilty py3 for tests/image TEXTURE_3D.py and TEXTURE_GRID.py #721

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Both are
    + mixing bytes with str literals, like ''. For compatibility they should be prefixed with 'b' , like b''
    + using a conversion int -> byte not compatible

Fixed by converting constants and doing the int -> byte with conditional code.

Now both tests run in py 2.6.6 and 3.3.1

Attached diffs for each file

Original issue reported on code.google.com by ccanepacc@gmail.com on 31 Mar 2014 at 5:24

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by useboxnet on 1 Apr 2014 at 6:00

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 9feab2ae9cf8.

Original comment by useboxnet on 1 Apr 2014 at 4:54