summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-05-15 16:04:41 +0200
committerJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-05-15 16:04:41 +0200
commitec6c9cd4dfd7dd428d8d33027f3ded02f80957a6 (patch)
tree479eccf4b256de7aa23f3c40131423af8d249d06 /sqlparse
parent6d96b8546173aceed0bb1ce74ff751c9adc6d323 (diff)
downloadsqlparse-ec6c9cd4dfd7dd428d8d33027f3ded02f80957a6.tar.gz
Changed IncludeStatement to a callable object
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/filters.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/sqlparse/filters.py b/sqlparse/filters.py
index ad95084..b11b7aa 100644
--- a/sqlparse/filters.py
+++ b/sqlparse/filters.py
@@ -99,10 +99,7 @@ class IncludeStatement:
self.detected = False
- def process(self, stack, stream):
- warn("Deprecated, use callable objects. This will be removed at 0.2.0",
- DeprecationWarning)
-
+ def __call__(self, stream):
# Run over all tokens in the stream
for token_type, value in stream:
# INCLUDE statement found, set detected mode