From bc2e143757f34d771ca4faeef3c4ccec83c736b2 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Wed, 21 Mar 2012 15:56:03 -0400 Subject: Fixing a few bugs in the debug middleware and legacy iPython support. --- pecan/commands/shell.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pecan/commands') diff --git a/pecan/commands/shell.py b/pecan/commands/shell.py index 3424103..000b176 100644 --- a/pecan/commands/shell.py +++ b/pecan/commands/shell.py @@ -34,8 +34,9 @@ class IPythonShell(object): shell = InteractiveShellEmbed(banner2=banner) shell(local_ns=ns) except ImportError: + # Support for the IPython <= 0.10 shell API from IPython.Shell import IPShellEmbed - shell = IPShellEmbed(argv=self.args) + shell = IPShellEmbed(argv=[]) shell.set_banner(shell.IP.BANNER + '\n\n' + banner) shell(local_ns=ns, global_ns={}) @@ -48,7 +49,7 @@ class ShellCommand(BaseCommand): SHELLS = { 'python': NativePythonShell, 'ipython': IPythonShell - } + } arguments = BaseCommand.arguments + ({ 'command': ['--shell', '-s'], -- cgit v1.2.1