Always use io module
The io module is always available in Python 3. Change-Id: If4900ca48750b87dcdb66e8761775a100aa28fca
This commit is contained in:
parent
b7bb35741a
commit
f278ef540b
@ -14,16 +14,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
|
from io import StringIO
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
try:
|
|
||||||
from StringIO import StringIO
|
|
||||||
except ImportError:
|
|
||||||
from io import StringIO
|
|
||||||
from unittest.mock import call
|
from unittest.mock import call
|
||||||
|
|
||||||
from magnumclient import exceptions
|
from magnumclient import exceptions
|
||||||
|
Loading…
Reference in New Issue
Block a user