mirror of https://github.com/xqemu/xqemu.git
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: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
parent
46012db666
commit
7a5d936b6f
|
@ -26,7 +26,10 @@ import tempfile
|
||||||
import re
|
import re
|
||||||
import signal
|
import signal
|
||||||
from tarfile import TarFile, TarInfo
|
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 shutil import copy, rmtree
|
||||||
from pwd import getpwuid
|
from pwd import getpwuid
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue