##// END OF EJS Templates
Replaced deprecated raise call
Nicolas Rougier -
Show More
@@ -391,16 +391,16 b' class InputHookManager(object):'
391 argNames=(),
391 argNames=(),
392 )
392 )
393 except AttributeError:
393 except AttributeError:
394 raise RuntimeError,\
394 raise RuntimeError(
395 'Your glut implementation does not allow interactive sessions' \
395 '''Your glut implementation does not allow interactive sessions'''
396 'Consider installing freeglut.'
396 '''Consider installing freeglut.''')
397 glutMainLoopEvent = glutCheckLoop
397 glutMainLoopEvent = glutCheckLoop
398 elif glut.HAVE_FREEGLUT:
398 elif glut.HAVE_FREEGLUT:
399 glutMainLoopEvent = glut.glutMainLoopEvent
399 glutMainLoopEvent = glut.glutMainLoopEvent
400 else:
400 else:
401 raise RuntimeError,\
401 raise RuntimeError(
402 'Your glut implementation does not allow interactive sessions. ' \
402 '''Your glut implementation does not allow interactive sessions. '''
403 'Consider installing freeglut.'
403 '''Consider installing freeglut.''')
404
404
405 def inputhook_glut():
405 def inputhook_glut():
406 """ Process pending GLUT events only. """
406 """ Process pending GLUT events only. """
General Comments 0
You need to be logged in to leave comments. Login now