summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-05-23 21:54:47 +0200
committerJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-05-23 21:54:47 +0200
commita15e726d7231bcbfa42c49384a4ca9187dc128d1 (patch)
treea806e9f48caa590f19eb5fbe266816b4279a39e5 /sqlparse
parente80e3fc36b60683fafaa51acdc5c95470dddc3fa (diff)
parenta18c97f796737b9a8ec57e56e185dead9b6e881a (diff)
downloadsqlparse-a15e726d7231bcbfa42c49384a4ca9187dc128d1.tar.gz
Merge branch 'master' of github.com:piranna/sqlparse
Conflicts: sqlparse/filters.py tests/test_functions.py
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/filters.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/sqlparse/filters.py b/sqlparse/filters.py
index 660092e..c5165be 100644
--- a/sqlparse/filters.py
+++ b/sqlparse/filters.py
@@ -651,13 +651,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)