diff options
| author | Jesús Leganés Combarro "Piranna" <piranna@gmail.com> | 2012-06-03 13:33:38 +0200 |
|---|---|---|
| committer | Jesús Leganés Combarro "Piranna" <piranna@gmail.com> | 2012-06-03 13:33:38 +0200 |
| commit | 1dfef65f69db96649f82db4173a8dad87dda4e0a (patch) | |
| tree | 7c494a70c73176abb26a8b471b0a2ca411d4e3f6 /sqlparse | |
| parent | de9e7cd09142c2ee4fdba5a1e3ebcfdfc0eb2feb (diff) | |
| parent | 92757b0ee0c1543c14f28d3b045ff11ddf5f4297 (diff) | |
| download | sqlparse-1dfef65f69db96649f82db4173a8dad87dda4e0a.tar.gz | |
Merge branch 'master' into milestone_0.1.5
Conflicts:
tests/files/_Make_DirEntry.sql
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/filters.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sqlparse/filters.py b/sqlparse/filters.py index fcd1c8d..3bf46d5 100644 --- a/sqlparse/filters.py +++ b/sqlparse/filters.py @@ -830,13 +830,11 @@ class Limit: return -1 -def Compact(sql, includePath="sql"): - """Function that return a compacted version of the input SQL query""" +def compact(stream): + """Function that return a compacted version of the stream""" pipe = Pipeline() - pipe.append(tokenize) - pipe.append(IncludeStatement(includePath)) pipe.append(StripComments()) pipe.append(StripWhitespace) - return pipe(sql) + return pipe(stream) |
