Permalink
Browse files

Replaced deprecated raise call

  • Loading branch information...
1 parent eb76eab commit 81308e3b118472629a70561e9cbd42483acb0cbd @rougier committed with fperez Aug 29, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 IPython/lib/inputhook.py
View
@@ -391,16 +391,16 @@ def timer(fps):
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. """

0 comments on commit 81308e3

Please sign in to comment.