##// END OF EJS Templates
update '-pylab' deprecation message to new pattern.
MinRK -
Show More
@@ -244,13 +244,13 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):'
244 # warn and transform into current syntax
244 # warn and transform into current syntax
245 argv = list(argv) # copy, don't clobber
245 argv = list(argv) # copy, don't clobber
246 warn.warn("`-pylab` flag has been deprecated.\n"
246 warn.warn("`-pylab` flag has been deprecated.\n"
247 " Use `--pylab` instead, or `pylab=foo` to specify a backend.")
247 " Use `--pylab` instead, or `--pylab=foo` to specify a backend.")
248 sub = '--pylab'
248 sub = '--pylab'
249 if len(argv) > idx+1:
249 if len(argv) > idx+1:
250 # check for gui arg, as in '-pylab qt'
250 # check for gui arg, as in '-pylab qt'
251 gui = argv[idx+1]
251 gui = argv[idx+1]
252 if gui in ('wx', 'qt', 'qt4', 'gtk', 'auto'):
252 if gui in ('wx', 'qt', 'qt4', 'gtk', 'auto'):
253 sub = 'pylab='+gui
253 sub = '--pylab='+gui
254 argv.pop(idx+1)
254 argv.pop(idx+1)
255 argv[idx] = sub
255 argv[idx] = sub
256
256
General Comments 0
You need to be logged in to leave comments. Login now