提交 7a5d936b 编写于 作者: A Alex Bennée

docker: docker.py wrap StringIO import for python3

Although the docker.py is nominally python2 we actually invoke it with
the configured python from the configure script.
Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
上级 46012db6
......@@ -26,7 +26,10 @@ import tempfile
import re
import signal
from tarfile import TarFile, TarInfo
from StringIO import StringIO
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
from shutil import copy, rmtree
from pwd import getpwuid
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册