summaryrefslogtreecommitdiff
path: root/sqlparse/sql.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2009-05-06 07:53:44 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2009-05-06 07:53:44 +0200
commit974222bcb24a5b2bf3a0e5ecd616a2c3855e8342 (patch)
tree7a366f4fd2bb286b88c23ac7f120fd3ba9954047 /sqlparse/sql.py
parentac165c93766f19d9c503ecb2d47d6e872d54c21c (diff)
downloadsqlparse-974222bcb24a5b2bf3a0e5ecd616a2c3855e8342.tar.gz
Code cleanup and test coverage.
Diffstat (limited to 'sqlparse/sql.py')
-rw-r--r--sqlparse/sql.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/sqlparse/sql.py b/sqlparse/sql.py
index 2ab05b9..5abaad0 100644
--- a/sqlparse/sql.py
+++ b/sqlparse/sql.py
@@ -118,19 +118,19 @@ class TokenList(Token):
def _get_repr_name(self):
return self.__class__.__name__
- def _pprint_tree(self, max_depth=None, depth=0):
- """Pretty-print the object tree."""
- indent = ' '*(depth*2)
- for token in self.tokens:
- if token.is_group():
- pre = ' | '
- else:
- pre = ' | '
- print '%s%s%s \'%s\'' % (indent, pre, token._get_repr_name(),
- token._get_repr_value())
- if (token.is_group() and max_depth is not None
- and depth < max_depth):
- token._pprint_tree(max_depth, depth+1)
+ ## def _pprint_tree(self, max_depth=None, depth=0):
+ ## """Pretty-print the object tree."""
+ ## indent = ' '*(depth*2)
+ ## for token in self.tokens:
+ ## if token.is_group():
+ ## pre = ' | '
+ ## else:
+ ## pre = ' | '
+ ## print '%s%s%s \'%s\'' % (indent, pre, token._get_repr_name(),
+ ## token._get_repr_value())
+ ## if (token.is_group() and max_depth is not None
+ ## and depth < max_depth):
+ ## token._pprint_tree(max_depth, depth+1)
def flatten(self):
"""Generator yielding ungrouped tokens.