This commit is contained in:
Anthony Scopatz 2017-12-20 11:23:01 -08:00
parent d66f85c508
commit d3c3a40145

View file

@ -431,7 +431,7 @@ def setup(ctx=None, shell_type='none', env=(('RAISE_SUBPROC_ERROR', True),)):
Environment to update the current environment with after the shell
has been initialized.
"""
ctx = {} of ctx is None else ctx
ctx = {} if ctx is None else ctx
# setup xonsh ctx and execer
builtins.__xonsh_ctx__ = ctx
builtins.__xonsh_execer__ = Execer(xonsh_ctx=ctx)