From 54fabc7c7cd268da2f49559b333b1d02f914cf2a Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Thu, 11 Jun 2009 20:56:02 +0200 Subject: Removed types import. --- sqlparse/sql.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sqlparse') 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): -- cgit v1.2.1