mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use six.move for module in module_utils/facts.py
This commit is contained in:
parent
a4660766f7
commit
4549604cc7
1 changed files with 1 additions and 15 deletions
|
@ -34,23 +34,9 @@ import pwd
|
|||
|
||||
from ansible.module_utils.basic import get_all_subclasses
|
||||
from ansible.module_utils.six import PY3, iteritems
|
||||
from ansible.module_utils.six.moves import configparser, StringIO
|
||||
from ansible.module_utils._text import to_native
|
||||
|
||||
# py2 vs py3; replace with six via ansiballz
|
||||
try:
|
||||
# python2
|
||||
import ConfigParser as configparser
|
||||
except ImportError:
|
||||
# python3
|
||||
import configparser
|
||||
|
||||
try:
|
||||
# python2
|
||||
from StringIO import StringIO
|
||||
except ImportError:
|
||||
# python3
|
||||
from io import StringIO
|
||||
|
||||
try:
|
||||
# python2
|
||||
from string import maketrans
|
||||
|
|
Loading…
Reference in a new issue