[Python-modules-team] Bug#498403: Patch

Josselin Mouette joss at debian.org
Wed Oct 15 11:32:11 UTC 2008


tag 498403 + patch
thanks

Hi,

the fix for this bug is in new upstream versions. Please backport it so
that we can have it in lenny; given the frequency of this bug occurring
and the simplicity of the fix, this looks like something to upload ASAP.

--- PyOpenGL-3.0.0b3/OpenGL/GL/pointers.py      2008-03-17 04:13:12.000000000 +0100
+++ PyOpenGL-3.0.0b4/OpenGL/GL/pointers.py      2008-07-04 16:15:42.000000000 +0200
@@ -259,7 +259,7 @@ def glRenderMode( newMode ):
        currentMode = glGetIntegerv( simple.GL_RENDER_MODE )
        try:
                currentMode = currentMode[0]
-       except (TypeError,ValueError), err:
+       except (TypeError,ValueError,IndexError), err:
                pass
        if currentMode in (simple.GL_RENDER,0):
                # no array needs to be returned...

Thanks,
-- 
 .''`.
: :' :      We are debian.org. Lower your prices, surrender your code.
`. `'       We will add your hardware and software distinctiveness to
  `-        our own. Resistance is futile.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20081015/f076dcee/attachment.pgp 


More information about the Python-modules-team mailing list