regsitry/gl.py: Make Error class inherit from Exception

Graphics / Mesa 3D Graphics Library / Piglit - Dylan Baker [gmail.com] - 28 January 2015 14:08 UTC

In python 2 it is expected that errors descend from Exception, but there is no requirement that they do so, in python 3 it is required. This also is problematic because it makes the exception class an old style class, which has all the problems associated with old style classes.

ccce471 regsitry/gl.py: Make Error class inherit from Exception
registry/gl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share