Skip to content

Commit

Permalink
fix keyword arg error
Browse files Browse the repository at this point in the history
  • Loading branch information
alok committed Aug 29, 2017
1 parent dfba7f6 commit 9b60c54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pudb/shell.py
Expand Up @@ -11,7 +11,6 @@
else:
HAVE_BPYTHON = True


try:
from ptpython.ipython import embed as ptipython_embed
except ImportError:
Expand Down Expand Up @@ -239,17 +238,18 @@ def run_ipython_shell(globals, locals):
def run_ptpython_shell(globals, locals):
# Use the default ptpython history
import os
history_filename = os.path.expanduser('~/.ptpython_history')
ptpython_embed(globals.copy(), locals.copy(),
history_filename = os.path.expanduser('~/.ptpython/history')
ptpython_embed(globals=globals.copy(), locals=locals.copy(),
history_filename=history_filename,
configure=run_config)


def run_ptipython_shell(globals, locals):
# Use the default ptpython history
import os
history_filename = os.path.expanduser('~/.ptpython_history')
ptipython_embed(globals.copy(), locals.copy(),

history_filename = os.path.expanduser('~/.ptpython/history')
ptipython_embed(globals=globals.copy(), locals=locals.copy(),
history_filename=history_filename,
configure=run_config)

Expand Down

0 comments on commit 9b60c54

Please sign in to comment.