From f69e33fa767830c6a638b47b55911bb646f5dc8d Mon Sep 17 00:00:00 2001 From: Steven Xu Date: Tue, 7 Jan 2020 21:20:21 +1100 Subject: [PATCH] Don't support Python 1.6 anymore, we only support Python >=3 --- test/cfvtest.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/cfvtest.py b/test/cfvtest.py index f89c821..02bd166 100644 --- a/test/cfvtest.py +++ b/test/cfvtest.py @@ -122,11 +122,8 @@ def runcfv_py(cmd, stdin=None, stdout=None, stderr=None, need_reload=0): saved_stdin_fileno = os.dup(sys.stdin.fileno()) os.dup2(fileno, sys.stdin.fileno()) os.close(fileno) - try: - from io import StringIO - StringIO().write(u'foo') # cStringIO with unicode doesn't work in python 1.6 - except (ImportError, SystemError): - from io import StringIO + + from io import StringIO obuf = StringIO() saved = sys.stdin, sys.stdout, sys.stderr, sys.argv cwd = os.getcwd()