mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Cleanup StringIO import for module_utils/shell.py
This commit is contained in:
committed by
Toshio Kuratomi
parent
4c06ddced6
commit
6052c1294b
@@ -21,11 +21,6 @@ import re
|
||||
import socket
|
||||
import time
|
||||
|
||||
# py2 vs py3; replace with six via ansiballz
|
||||
try:
|
||||
from StringIO import StringIO
|
||||
except ImportError:
|
||||
from io import StringIO
|
||||
|
||||
try:
|
||||
import paramiko
|
||||
@@ -36,6 +31,7 @@ except ImportError:
|
||||
|
||||
from ansible.module_utils.basic import get_exception
|
||||
from ansible.module_utils.network import NetworkError
|
||||
from ansible.module_utils.six.moves import StringIO
|
||||
|
||||
ANSI_RE = [
|
||||
re.compile(r'(\x1b\[\?1h\x1b=)'),
|
||||
|
||||
Reference in New Issue
Block a user