diff options
| author | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-02 21:25:01 -0700 |
|---|---|---|
| committer | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-04 15:06:04 -0700 |
| commit | 5ce225522ba2b2a8af23c7efcbd6261bd9f09528 (patch) | |
| tree | 6f1cf4358cd7a6ec801c7b4a061c535c18bc2e1a /sqlparse/engine/__init__.py | |
| parent | 62423c0d5e2e570341d5d0db74982712ff2348c7 (diff) | |
| download | sqlparse-5ce225522ba2b2a8af23c7efcbd6261bd9f09528.tar.gz | |
Remove as parameter stack in filter.process
Diffstat (limited to 'sqlparse/engine/__init__.py')
| -rw-r--r-- | sqlparse/engine/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sqlparse/engine/__init__.py b/sqlparse/engine/__init__.py index 1c2bf09..e69a138 100644 --- a/sqlparse/engine/__init__.py +++ b/sqlparse/engine/__init__.py @@ -29,12 +29,12 @@ class FilterStack(object): # Process token stream if self.preprocess: for filter_ in self.preprocess: - stream = filter_.process(self, stream) + stream = filter_.process(stream) if (self.stmtprocess or self.postprocess or self.split_statements or self._grouping): splitter = StatementFilter() - stream = splitter.process(self, stream) + stream = splitter.process(stream) if self._grouping: @@ -50,7 +50,7 @@ class FilterStack(object): ret = [] for stmt in stream: for filter_ in self.stmtprocess: - filter_.process(self, stmt) + filter_.process(stmt) ret.append(stmt) return ret stream = _run1(stream) @@ -61,7 +61,7 @@ class FilterStack(object): for stmt in stream: stmt.tokens = list(stmt.flatten()) for filter_ in self.postprocess: - stmt = filter_.process(self, stmt) + stmt = filter_.process(stmt) yield stmt stream = _run2(stream) |
