Skip to content

Commit

Permalink
Don't support Python 1.6 anymore, we only support Python >=3
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenxxiu committed Jan 7, 2020
1 parent 899cbe1 commit f69e33f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/cfvtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f69e33f

Please sign in to comment.