diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2013-04-30 18:27:21 -0400 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2013-04-30 18:27:21 -0400 |
commit | ccf3d8895aebbb111f79829660de0d09c66d14de (patch) | |
tree | f995effc5f09ffcd6d40b53f48a6db2f9a95b8c2 | |
parent | 70d07ba9e65fd715e79541a164aaadb9d9304e06 (diff) | |
download | pecan-ccf3d8895aebbb111f79829660de0d09c66d14de.tar.gz |
Fix an issue with Python3 compatability in `pecan shell`.
-rw-r--r-- | pecan/commands/shell.py | 6 |
1 files changed, 6 insertions, 0 deletions
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' |