Skip to content

Commit

Permalink
Fixed the import StringIO issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziang Song committed Apr 22, 2014
1 parent a102844 commit c383374
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sqlparse/lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@

from sqlparse import tokens
from sqlparse.keywords import KEYWORDS, KEYWORDS_COMMON
from io import StringIO

try:
# Python 3
from io import BytesIO as StringIO
except (ImportError):
# Python 2
from StringIO import StringIO


import collections


Expand Down

0 comments on commit c383374

Please sign in to comment.