Skip to content

Commit

Permalink
Merge pull request #268 from Alok/add-ptipython
Browse files Browse the repository at this point in the history
Fix keyword arg error
  • Loading branch information
inducer committed Aug 30, 2017
2 parents fb9f256 + 9b60c54 commit 67b485e
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 67b485e

Please sign in to comment.