summaryrefslogtreecommitdiff
path: root/sqlparse/sql.py
diff options
context:
space:
mode:
authorJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-05-19 21:43:54 +0200
committerJesús Leganés Combarro "Piranna" <piranna@gmail.com>2012-05-19 21:43:54 +0200
commit59bfe75aaec583fdb92668819f021ba18c4595e3 (patch)
tree07a58dce5da5649b7e1630fa5e0b35b5589f54a7 /sqlparse/sql.py
parent8bd03f158343bd2b83802c1059e15953c72f9f36 (diff)
parent66742da10ebdc2bc485022ecbd59278d3fc96488 (diff)
downloadsqlparse-59bfe75aaec583fdb92668819f021ba18c4595e3.tar.gz
Merge branch 'master' into antiorm
Conflicts: sqlparse/filters.py
Diffstat (limited to 'sqlparse/sql.py')
-rw-r--r--sqlparse/sql.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/sqlparse/sql.py b/sqlparse/sql.py
index 05e078d..d18a0a7 100644
--- a/sqlparse/sql.py
+++ b/sqlparse/sql.py
@@ -181,6 +181,13 @@ class TokenList(Token):
else:
yield token
+# def __iter__(self):
+# return self
+#
+# def next(self):
+# for token in self.tokens:
+# yield token
+
def is_group(self):
return True
@@ -255,7 +262,7 @@ class TokenList(Token):
def token_matching(self, idx, funcs):
for token in self.tokens[idx:]:
- for i, func in enumerate(funcs):
+ for func in funcs:
if func(token):
return token