summaryrefslogtreecommitdiff
path: root/sqlparse/sql.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2011-09-06 08:01:12 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2011-09-06 08:01:12 +0200
commitbcaf3269b3a8746a4ee8c848256d5f2b11b25d27 (patch)
tree942dc34e3e993bdcce71e0295c146fd556efbba5 /sqlparse/sql.py
parent3bf54c10f0742e3afc75dcaa4623397097beadc5 (diff)
downloadsqlparse-bcaf3269b3a8746a4ee8c848256d5f2b11b25d27.tar.gz
Code cleanup.
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.