diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2010-07-04 20:53:02 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2010-07-04 20:53:02 +0200 |
| commit | 3bfa75a7d2042cdd56245034b9467b28f578ce9c (patch) | |
| tree | 7617a56c60146f544778b25c1188159bfcd9b961 /sqlparse/engine/__init__.py | |
| parent | 2a090575f6d0571208a6d3a6ae57c31c4adbc653 (diff) | |
| download | sqlparse-3bfa75a7d2042cdd56245034b9467b28f578ce9c.tar.gz | |
PEP8: Code cleanup.
Diffstat (limited to 'sqlparse/engine/__init__.py')
| -rw-r--r-- | sqlparse/engine/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sqlparse/engine/__init__.py b/sqlparse/engine/__init__.py index 02f84c6..3e2822b 100644 --- a/sqlparse/engine/__init__.py +++ b/sqlparse/engine/__init__.py @@ -49,6 +49,7 @@ class FilterStack(object): stream = splitter.process(self, stream) if self._grouping: + def _group(stream): for stmt in stream: grouping.group(stmt) @@ -56,6 +57,7 @@ class FilterStack(object): stream = _group(stream) if self.stmtprocess: + def _run1(stream): ret = [] for stmt in stream: @@ -66,6 +68,7 @@ class FilterStack(object): stream = _run1(stream) if self.postprocess: + def _run2(stream): for stmt in stream: stmt.tokens = list(self._flatten(stmt.tokens)) @@ -75,4 +78,3 @@ class FilterStack(object): stream = _run2(stream) return stream - |
