aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/utils/sqlparse/formatter.py
diff options
context:
space:
mode:
authorJason Keene2011-08-20 01:30:27 -0400
committerJason Keene2011-08-20 01:30:27 -0400
commitec688d299517459d37904b61b19ba5b3e262aa61 (patch)
tree2fb8d7b74cec005febce775cb6d4b1a438c78563 /debug_toolbar/utils/sqlparse/formatter.py
parentd55d8192dff37c9c025e9d97813d40f2081d69d7 (diff)
parent6e3d9da54cffb41461c6778c55b0461410a9655c (diff)
downloaddjango-debug-toolbar-ec688d299517459d37904b61b19ba5b3e262aa61.tar.bz2
Merge branch 'master' of git://github.com/django-debug-toolbar/django-debug-toolbar into jquery_no_conflict_issue
Diffstat (limited to 'debug_toolbar/utils/sqlparse/formatter.py')
-rw-r--r--debug_toolbar/utils/sqlparse/formatter.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/debug_toolbar/utils/sqlparse/formatter.py b/debug_toolbar/utils/sqlparse/formatter.py
index 34e9fe0..3acece9 100644
--- a/debug_toolbar/utils/sqlparse/formatter.py
+++ b/debug_toolbar/utils/sqlparse/formatter.py
@@ -76,11 +76,11 @@ def build_filter_stack(stack, options):
options: Dictionary with options validated by validate_options.
"""
# Token filter
- if 'keyword_case' in options:
+ if options.get('keyword_case', None):
stack.preprocess.append(
filters.KeywordCaseFilter(options['keyword_case']))
- if 'identifier_case' in options:
+ if options.get('identifier_case', None):
stack.preprocess.append(
filters.IdentifierCaseFilter(options['identifier_case']))
@@ -118,5 +118,3 @@ def build_filter_stack(stack, options):
stack.postprocess.append(fltr)
return stack
-
-