Always use io module

The io module is always available in Python 3.

Change-Id: If4900ca48750b87dcdb66e8761775a100aa28fca
This commit is contained in:
Takashi Kajinami 2024-05-07 21:53:40 +09:00
parent b7bb35741a
commit f278ef540b

View File

@ -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