From 2c543a8beff2233352f97050da8f45bd5e948e1b Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Sun, 4 Mar 2018 16:46:48 -0800 Subject: [PATCH] Use io.StringIO instead of the StringIO module --- hy/_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hy/_compat.py b/hy/_compat.py index 60dfe6f54..3c5b7d983 100644 --- a/hy/_compat.py +++ b/hy/_compat.py @@ -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: