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:
parent
4c06ddced6
commit
6052c1294b
1 changed files with 1 additions and 5 deletions
|
@ -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=)'),
|
||||||
|
|
Loading…
Reference in a new issue