From 5fa2eb281c741bd2c6f190d3fdbaf10f4217f54f 2016-01-05 15:47:05 From: Pierre Gerold Date: 2016-01-05 15:47:05 Subject: [PATCH] log.warn -> log.warning in application.py --- diff --git a/IPython/core/application.py b/IPython/core/application.py index bf2ab7e..07a393a 100644 --- a/IPython/core/application.py +++ b/IPython/core/application.py @@ -289,7 +289,7 @@ class BaseIPythonApplication(Application): except ConfigFileNotFound: # Only warn if the default config file was NOT being used. if config_file_name in self.config_file_specified: - msg = self.log.warn + msg = self.log.warning else: msg = self.log.debug msg("Config file not found, skipping: %s", config_file_name) @@ -297,7 +297,7 @@ class BaseIPythonApplication(Application): # For testing purposes. if not suppress_errors: raise - self.log.warn("Error loading config file: %s" % + self.log.warning("Error loading config file: %s" % self.config_file_name, exc_info=True) def init_profile_dir(self): @@ -364,7 +364,7 @@ class BaseIPythonApplication(Application): cfg = self.config_file_name if path and os.path.exists(os.path.join(path, cfg)): - self.log.warn("Staging %r from %s into %r [overwrite=%s]"%( + self.log.warning("Staging %r from %s into %r [overwrite=%s]"%( cfg, src, self.profile_dir.location, self.overwrite) ) self.profile_dir.copy_config_file(cfg, path=path, overwrite=self.overwrite) @@ -379,7 +379,7 @@ class BaseIPythonApplication(Application): cfg = os.path.basename(fullpath) if self.profile_dir.copy_config_file(cfg, path=path, overwrite=False): # file was copied - self.log.warn("Staging bundled %s from %s into %r"%( + self.log.warning("Staging bundled %s from %s into %r"%( cfg, self.profile, self.profile_dir.location) ) @@ -389,7 +389,7 @@ class BaseIPythonApplication(Application): s = self.generate_config_file() fname = os.path.join(self.profile_dir.location, self.config_file_name) if self.overwrite or not os.path.exists(fname): - self.log.warn("Generating default config file: %r"%(fname)) + self.log.warning("Generating default config file: %r"%(fname)) with open(fname, 'w') as f: f.write(s) @@ -407,4 +407,3 @@ class BaseIPythonApplication(Application): self.load_config_file() # enforce cl-opts override configfile opts: self.update_config(cl_config) -