diff options
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/sql.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sqlparse/sql.py b/sqlparse/sql.py index d1ab232..31feb10 100644 --- a/sqlparse/sql.py +++ b/sqlparse/sql.py @@ -3,7 +3,6 @@ """This module contains classes representing syntactical elements of SQL.""" import re -import types from sqlparse import tokens as T @@ -190,7 +189,7 @@ class TokenList(Token): def token_next_match(self, idx, ttype, value, regex=False): """Returns next token where it's ``match`` method returns ``True``.""" - if type(idx) != types.IntType: + if not isinstance(idx, int): idx = self.token_index(idx) for token in self.tokens[idx:]: if token.match(ttype, value, regex): |
