From 8a455dbc824393899fd465f6816091f789eb7e1d Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Tue, 16 Aug 2011 02:30:36 -0500 Subject: Minor change to help output. --- pyramid/paster.py | 6 +++--- 1 file 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 -- cgit v1.2.3