Skip to content

Commit

Permalink
Merge pull request #804 from Carreau/log-wning
Browse files Browse the repository at this point in the history
update log.warn (deprecated) to log.warning
  • Loading branch information
takluyver authored May 3, 2018
2 parents e59f4ce + 27899bf commit e5c2814
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nbconvert/exporters/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def run_bib(self, filename):
filename = os.path.splitext(filename)[0]

def log_error(command, out):
self.log.warn('%s had problems, most likely because there were no citations',
self.log.warning('%s had problems, most likely because there were no citations',
command[0])
self.log.debug(u"%s output: %s\n%s", command[0], command, out)

Expand Down
2 changes: 1 addition & 1 deletion nbconvert/nbconvertapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def init_notebooks(self):
globbed_files = glob.glob(pattern)
globbed_files.extend(glob.glob(pattern + '.ipynb'))
if not globbed_files:
self.log.warn("pattern %r matched no files", pattern)
self.log.warning("pattern %r matched no files", pattern)

for filename in globbed_files:
if not filename in filenames:
Expand Down
2 changes: 1 addition & 1 deletion nbconvert/preprocessors/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def run_cell(self, cell, cell_index=0):
# finishes, we won't actually have to wait this long, anyway.
msg = self.kc.iopub_channel.get_msg(timeout=self.iopub_timeout)
except Empty:
self.log.warn("Timeout waiting for IOPub output")
self.log.warning("Timeout waiting for IOPub output")
if self.raise_on_iopub_timeout:
raise RuntimeError("Timeout waiting for IOPub output")
else:
Expand Down

0 comments on commit e5c2814

Please sign in to comment.