summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2009-06-11 20:56:02 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2009-06-11 20:56:02 +0200
commit54fabc7c7cd268da2f49559b333b1d02f914cf2a (patch)
treebd77ced820965196ac9b842d401781c918f30743 /sqlparse
parent7d43d7361fc0ac8330e0631000c779771f00fdd6 (diff)
downloadsqlparse-54fabc7c7cd268da2f49559b333b1d02f914cf2a.tar.gz
Removed types import.
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/sql.py3
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):