diff options
| author | Michael Merickel <michael@merickel.org> | 2011-08-16 02:30:36 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2011-08-16 03:18:28 -0500 |
| commit | 8a455dbc824393899fd465f6816091f789eb7e1d (patch) | |
| tree | fbf294585c641e8eb51f7470dffffa2fabf2c406 | |
| parent | a5d9ff4e135feb8a8132cfd93dcb51fa2eacd35d (diff) | |
| download | pyramid-8a455dbc824393899fd465f6816091f789eb7e1d.tar.gz pyramid-8a455dbc824393899fd465f6816091f789eb7e1d.tar.bz2 pyramid-8a455dbc824393899fd465f6816091f789eb7e1d.zip | |
Minor change to help output.
| -rw-r--r-- | pyramid/paster.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyramid/paster.py b/pyramid/paster.py index 99ead1af3..7beeada7a 100644 --- a/pyramid/paster.py +++ b/pyramid/paster.py @@ -207,7 +207,7 @@ class PShellCommand(PCommand): del env_help[k] # generate help text - help = '\n' + help = '' if env_help: help += 'Environment:' for var in sorted(env_help.keys()): @@ -238,7 +238,7 @@ class PShellCommand(PCommand): def shell(env, help): cprt = 'Type "help" for more information.' banner = "Python %s on %s\n%s" % (sys.version, sys.platform, cprt) - banner += '\n' + help + '\n' + banner += '\n\n' + help + '\n' interact(banner, local=env) return shell @@ -251,7 +251,7 @@ class PShellCommand(PCommand): except ImportError: return None def shell(env, help): - IPShell = IPShellFactory(banner2=help, user_ns=env) + IPShell = IPShellFactory(banner2=help + '\n', user_ns=env) IPShell() return shell |
