Merge pull request #659 from guoci/patch-1

make script version agnostic
This commit is contained in:
Hisham Muhammad 2017-07-28 21:07:54 -03:00 committed by GitHub
commit 4300a19592
1 changed files with 5 additions and 2 deletions

View File

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