From ccf3d8895aebbb111f79829660de0d09c66d14de Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Tue, 30 Apr 2013 18:27:21 -0400 Subject: [PATCH] Fix an issue with Python3 compatability in `pecan shell`. --- pecan/commands/shell.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pecan/commands/shell.py b/pecan/commands/shell.py index 44d5c33..89fd06c 100644 --- a/pecan/commands/shell.py +++ b/pecan/commands/shell.py @@ -128,6 +128,12 @@ class ShellCommand(BaseCommand): exec( 'from pecan import abort, conf, redirect, request, response' ) in locs + from pecan import abort, conf, redirect, request, response + locs['abort'] = abort + locs['conf'] = conf + locs['redirect'] = redirect + locs['request'] = request + locs['response'] = response # prepare the banner banner = ' The following objects are available:\n'