Skip to content

Commit

Permalink
Use io.StringIO instead of the StringIO module
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Mar 13, 2018
1 parent ca06294 commit 4c5dea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hy/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def isidentifier(x):
if x.rstrip() != x:
return False
import tokenize as T
from StringIO import StringIO
from io import StringIO
try:
tokens = list(T.generate_tokens(StringIO(x).readline))
except T.TokenError:
Expand Down

0 comments on commit 4c5dea0

Please sign in to comment.