diff options
author | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-05-10 20:03:20 -0700 |
---|---|---|
committer | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-05-10 20:20:03 -0700 |
commit | 4364b250c6b0632e7a39f8153e864a7f3d63833e (patch) | |
tree | dcc5426a4ac1c05cf772d3a26815582fa62771ce /sqlparse/utils.py | |
parent | f26719dc8d2c9cf4bf85501bb68cc4ed3f4da86d (diff) | |
download | sqlparse-4364b250c6b0632e7a39f8153e864a7f3d63833e.tar.gz |
Add group matching M_tokens and refactor group matching
remove slots in subclasses
Diffstat (limited to 'sqlparse/utils.py')
-rw-r--r-- | sqlparse/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/utils.py b/sqlparse/utils.py index 66dd8bc..90acb5c 100644 --- a/sqlparse/utils.py +++ b/sqlparse/utils.py @@ -166,7 +166,7 @@ def imt(token, i=None, m=None, t=None): def find_matching(tlist, token, M1, M2): idx = tlist.token_index(token) depth = 0 - for token in tlist[idx:]: + for token in tlist.tokens[idx:]: if token.match(*M1): depth += 1 elif token.match(*M2): |