@@ -231,11 +231,11 @@ def init_gui_pylab(self):
231231 try :
232232 r = enable (key )
233233 except ImportError :
234- self .log .warn ("Eventloop or matplotlib integration failed. Is matplotlib installed?" )
234+ self .log .warning ("Eventloop or matplotlib integration failed. Is matplotlib installed?" )
235235 self .shell .showtraceback ()
236236 return
237237 except Exception :
238- self .log .warn ("GUI event loop or pylab initialization failed" )
238+ self .log .warning ("GUI event loop or pylab initialization failed" )
239239 self .shell .showtraceback ()
240240 return
241241
@@ -273,11 +273,11 @@ def init_extensions(self):
273273 ext = ext ,
274274 location = self .profile_dir .location
275275 ))
276- self .log .warn (msg , exc_info = True )
276+ self .log .warning (msg , exc_info = True )
277277 except :
278278 if self .reraise_ipython_extension_failures :
279279 raise
280- self .log .warn ("Unknown error in loading extensions:" , exc_info = True )
280+ self .log .warning ("Unknown error in loading extensions:" , exc_info = True )
281281
282282 def init_code (self ):
283283 """run the pre-flight code, specified via exec_lines"""
@@ -310,18 +310,18 @@ def _run_exec_lines(self):
310310 line )
311311 self .shell .run_cell (line , store_history = False )
312312 except :
313- self .log .warn ("Error in executing line in user "
313+ self .log .warning ("Error in executing line in user "
314314 "namespace: %s" % line )
315315 self .shell .showtraceback ()
316316 except :
317- self .log .warn ("Unknown error in handling IPythonApp.exec_lines:" )
317+ self .log .warning ("Unknown error in handling IPythonApp.exec_lines:" )
318318 self .shell .showtraceback ()
319319
320320 def _exec_file (self , fname , shell_futures = False ):
321321 try :
322322 full_filename = filefind (fname , [u'.' , self .ipython_dir ])
323323 except IOError as e :
324- self .log .warn ("File not found: %r" % fname )
324+ self .log .warning ("File not found: %r" % fname )
325325 return
326326 # Make sure that the running script gets a proper sys.argv as if it
327327 # were run from a system shell.
@@ -362,7 +362,7 @@ def _run_startup_files(self):
362362 try :
363363 self ._exec_file (python_startup )
364364 except :
365- self .log .warn ("Unknown error in handling PYTHONSTARTUP file %s:" , python_startup )
365+ self .log .warning ("Unknown error in handling PYTHONSTARTUP file %s:" , python_startup )
366366 self .shell .showtraceback ()
367367 finally :
368368 # Many PYTHONSTARTUP files set up the readline completions,
@@ -381,7 +381,7 @@ def _run_startup_files(self):
381381 for fname in sorted (startup_files ):
382382 self ._exec_file (fname )
383383 except :
384- self .log .warn ("Unknown error in handling startup files:" )
384+ self .log .warning ("Unknown error in handling startup files:" )
385385 self .shell .showtraceback ()
386386
387387 def _run_exec_files (self ):
@@ -394,7 +394,7 @@ def _run_exec_files(self):
394394 for fname in self .exec_files :
395395 self ._exec_file (fname )
396396 except :
397- self .log .warn ("Unknown error in handling IPythonApp.exec_files:" )
397+ self .log .warning ("Unknown error in handling IPythonApp.exec_files:" )
398398 self .shell .showtraceback ()
399399
400400 def _run_cmd_line_code (self ):
@@ -406,7 +406,7 @@ def _run_cmd_line_code(self):
406406 line )
407407 self .shell .run_cell (line , store_history = False )
408408 except :
409- self .log .warn ("Error in executing line in user namespace: %s" %
409+ self .log .warning ("Error in executing line in user namespace: %s" %
410410 line )
411411 self .shell .showtraceback ()
412412
0 commit comments