aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Hudson2009-08-07 07:20:38 -0700
committerRob Hudson2009-08-07 07:20:38 -0700
commitb5ccbcdfa1b4cc71aec7c289d455298bc5cd1bfb (patch)
treec294e3963a5f4eaa3518295a11bdbeb10bb96373
parent7802b9dabc3c02631330c7f30b5707e63a05da38 (diff)
downloaddjango-debug-toolbar-b5ccbcdfa1b4cc71aec7c289d455298bc5cd1bfb.tar.bz2
Cleaned up trailing spaces.
-rw-r--r--debug_toolbar/management/commands/debugsqlshell.py14
1 files 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