diff options
author | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-12 20:12:48 -0700 |
---|---|---|
committer | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-14 03:25:23 -0700 |
commit | a7ffa646e9c2839999217cc181544a8a4bb9a5fd (patch) | |
tree | 087f2e53200a3ac28d2a1ce7c4b9f198696166dd /sqlparse/utils.py | |
parent | fae3d94f7f3039d5d7b264b6b4aad69c6b03c9a4 (diff) | |
parent | 89d4f68ba5bbe78a9dd89257cbe4a9f3cfa76433 (diff) | |
download | sqlparse-a7ffa646e9c2839999217cc181544a8a4bb9a5fd.tar.gz |
Merge remote-tracking branch 'core/long_live_indexes' into develop
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 4a8646d..59301ff 100644 --- a/sqlparse/utils.py +++ b/sqlparse/utils.py @@ -104,7 +104,7 @@ def imt(token, i=None, m=None, t=None): def find_matching(tlist, token, open_pattern, close_pattern): - idx = tlist.token_index(token) + idx = tlist.token_index(token) if not isinstance(token, int) else token depth = 0 for token in tlist.tokens[idx:]: if token.match(*open_pattern): |