make script version agnostic

This commit is contained in:
guoci 2017-07-27 17:02:01 -04:00 committed by GitHub
parent 09e241fb12
commit 60acda0bce
1 changed files with 5 additions and 2 deletions

View File

@ -2,8 +2,11 @@
import os, sys, string
try:
from cStringIO import StringIO
except:
except ImportError:
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
ANY=1
COPY=2