Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b259aff

Browse files
committed
flipping order of charges in safe_exefile_ipy
1 parent 1ea4357 commit b259aff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

IPython/core/interactiveshell.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,21 +2664,21 @@ def safe_execfile(self, fname, *where, **kw):
26642664
# tb offset is 2 because we wrap execfile
26652665
self.showtraceback(tb_offset=2)
26662666

2667-
def safe_execfile_ipy(self, fname, raise_exceptions=False, shell_futures=False):
2667+
def safe_execfile_ipy(self, fname, shell_futures=False, raise_exceptions=False):
26682668
"""Like safe_execfile, but for .ipy or .ipynb files with IPython syntax.
26692669
26702670
Parameters
26712671
----------
26722672
fname : str
26732673
The name of the file to execute. The filename must have a
26742674
.ipy or .ipynb extension.
2675-
raise_exceptions : bool (False)
2676-
If True raise exceptions everywhere. Meant for testing.
26772675
shell_futures : bool (False)
26782676
If True, the code will share future statements with the interactive
26792677
shell. It will both be affected by previous __future__ imports, and
26802678
any __future__ imports in the code will affect the shell. If False,
26812679
__future__ imports are not shared in either direction.
2680+
raise_exceptions : bool (False)
2681+
If True raise exceptions everywhere. Meant for testing.
26822682
"""
26832683
fname = os.path.abspath(os.path.expanduser(fname))
26842684

0 commit comments

Comments
 (0)