1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Cleanup StringIO import for module_utils/shell.py

This commit is contained in:
Michael Scherer 2016-10-28 09:56:04 +02:00 committed by Toshio Kuratomi
parent 4c06ddced6
commit 6052c1294b

View file

@ -21,11 +21,6 @@ import re
import socket import socket
import time import time
# py2 vs py3; replace with six via ansiballz
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
try: try:
import paramiko import paramiko
@ -36,6 +31,7 @@ except ImportError:
from ansible.module_utils.basic import get_exception from ansible.module_utils.basic import get_exception
from ansible.module_utils.network import NetworkError from ansible.module_utils.network import NetworkError
from ansible.module_utils.six.moves import StringIO
ANSI_RE = [ ANSI_RE = [
re.compile(r'(\x1b\[\?1h\x1b=)'), re.compile(r'(\x1b\[\?1h\x1b=)'),