diff --git a/IPython/lib/inputhook.py b/IPython/lib/inputhook.py index dbd74ef..c5aa1cf 100755 --- a/IPython/lib/inputhook.py +++ b/IPython/lib/inputhook.py @@ -391,16 +391,16 @@ class InputHookManager(object): argNames=(), ) except AttributeError: - raise RuntimeError,\ - 'Your glut implementation does not allow interactive sessions' \ - 'Consider installing freeglut.' + raise RuntimeError( + '''Your glut implementation does not allow interactive sessions''' + '''Consider installing freeglut.''') glutMainLoopEvent = glutCheckLoop elif glut.HAVE_FREEGLUT: glutMainLoopEvent = glut.glutMainLoopEvent else: - raise RuntimeError,\ - 'Your glut implementation does not allow interactive sessions. ' \ - 'Consider installing freeglut.' + raise RuntimeError( + '''Your glut implementation does not allow interactive sessions. ''' + '''Consider installing freeglut.''') def inputhook_glut(): """ Process pending GLUT events only. """