Skip to content

Commit 98395ac

Browse files
adamkleinwesm
authored andcommitted
ENH: ipython_directive to warning on exceptions when building docs, bug fis
1 parent a7420a3 commit 98395ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/sphinxext/ipython_directive.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- c oding: utf-8 -*-
1+
# -*- coding: utf-8 -*-
22
"""Sphinx directive to support embedded IPython code.
33
44
This directive allows pasting of entire interactive IPython sessions, prompts
@@ -219,7 +219,7 @@ def __init__(self):
219219

220220
def custom_handler(self, etype, value, tb, tb_offset=None):
221221
if not self_closure.suppress_exception_warning:
222-
errstr = ("WARNING: Exception in statement '%s' => %s, %s)\n"
222+
errstr = ("WARNING: Exception in statement '%s', %s, %s)\n"
223223
% (self_closure.datacontent[1], etype, value))
224224
sys.stderr.write(errstr)
225225

@@ -644,7 +644,7 @@ def get_config_options(self):
644644
def setup(self):
645645
# get config values
646646
(savefig_dir, source_dir, rgxin,
647-
rgxout, promptin, promptout) = self.get_config_options()
647+
rgxout, promptin, promptout) = self.get_config_options()
648648

649649
# and attach to shell so we don't have to pass them around
650650
self.shell.rgxin = rgxin

0 commit comments

Comments
 (0)