From b5ccbcdfa1b4cc71aec7c289d455298bc5cd1bfb Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Fri, 7 Aug 2009 07:20:38 -0700 Subject: Cleaned up trailing spaces. --- debug_toolbar/management/commands/debugsqlshell.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/debug_toolbar/management/commands/debugsqlshell.py b/debug_toolbar/management/commands/debugsqlshell.py index 0f2fc6a..84b4a2f 100644 --- a/debug_toolbar/management/commands/debugsqlshell.py +++ b/debug_toolbar/management/commands/debugsqlshell.py @@ -22,7 +22,7 @@ class PrintQueryWrapper(util.CursorDebugWrapper): else: print raw_sql print - + util.CursorDebugWrapper = PrintQueryWrapper # The rest is copy/paste from django/core/management/commands/shell.py @@ -72,12 +72,12 @@ class Command(NoArgsCommand): # We want to honor both $PYTHONSTARTUP and .pythonrc.py, so follow system # conventions and get $PYTHONSTARTUP first then import user. - if not use_plain: - pythonrc = os.environ.get("PYTHONSTARTUP") - if pythonrc and os.path.isfile(pythonrc): - try: - execfile(pythonrc) - except NameError: + if not use_plain: + pythonrc = os.environ.get("PYTHONSTARTUP") + if pythonrc and os.path.isfile(pythonrc): + try: + execfile(pythonrc) + except NameError: pass # This will import .pythonrc.py as a side-effect import user -- cgit v1.2.3