Skip to content

Commit 54fabc7

Browse files
committed
Removed types import.
1 parent 7d43d73 commit 54fabc7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sqlparse/sql.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""This module contains classes representing syntactical elements of SQL."""
44

55
import re
6-
import types
76

87
from sqlparse import tokens as T
98

@@ -190,7 +189,7 @@ def token_next_by_type(self, idx, ttypes):
190189

191190
def token_next_match(self, idx, ttype, value, regex=False):
192191
"""Returns next token where it's ``match`` method returns ``True``."""
193-
if type(idx) != types.IntType:
192+
if not isinstance(idx, int):
194193
idx = self.token_index(idx)
195194
for token in self.tokens[idx:]:
196195
if token.match(ttype, value, regex):

0 commit comments

Comments
 (0)