diff options
Diffstat (limited to 'sqlparse/lexer.py')
-rw-r--r-- | sqlparse/lexer.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py index 06318c6..e7996b2 100644 --- a/sqlparse/lexer.py +++ b/sqlparse/lexer.py @@ -12,20 +12,12 @@ # It's separated from the rest of pygments to increase performance # and to allow some customizations. -from io import TextIOBase - from sqlparse import tokens from sqlparse.keywords import SQL_REGEX -from sqlparse.compat import StringIO, string_types, u +from sqlparse.compat import file_types, string_types, u from sqlparse.utils import consume -try: - file_types = (file, StringIO, TextIOBase) -except NameError: # Python 3 - file_types = (StringIO, TextIOBase) - - class Lexer(object): """Lexer Empty class. Leaving for backwards-compatibility |