summaryrefslogtreecommitdiff
path: root/sqlparse/sql.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2011-09-27 12:45:30 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2011-09-27 12:45:30 +0200
commitf811fa12247330adc27f1b842167a112b1c0829c (patch)
tree455bc81faf235419724537bde5d065ea1b186f59 /sqlparse/sql.py
parent4b9261f4076befecbc4757c21ed0b268df546f96 (diff)
parentb0010af3ec74e57adf8910ab5d69f408cda3c475 (diff)
downloadsqlparse-f811fa12247330adc27f1b842167a112b1c0829c.tar.gz
Merged.
Diffstat (limited to 'sqlparse/sql.py')
-rw-r--r--sqlparse/sql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlparse/sql.py b/sqlparse/sql.py
index 5b8f067..4d56bf3 100644
--- a/sqlparse/sql.py
+++ b/sqlparse/sql.py
@@ -146,7 +146,7 @@ class TokenList(Token):
def _pprint_tree(self, max_depth=None, depth=0):
"""Pretty-print the object tree."""
- indent = ' '*(depth*2)
+ indent = ' ' * (depth * 2)
for idx, token in enumerate(self.tokens):
if token.is_group():
pre = ' +-'
@@ -156,7 +156,7 @@ class TokenList(Token):
token._get_repr_name(),
token._get_repr_value())
if (token.is_group() and (max_depth is None or depth < max_depth)):
- token._pprint_tree(max_depth, depth+1)
+ token._pprint_tree(max_depth, depth + 1)
def flatten(self):
"""Generator yielding ungrouped tokens.