Replace import of pycompat24.literal_eval with ast.literal_eval. (#64088)
This commit is contained in:
parent
c67c23234a
commit
3126c38f8a
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/64088-ast-literal.yml
Normal file
2
changelogs/fragments/64088-ast-literal.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- core - replace a compatibility import of pycompat24.literal_eval with ast.literal_eval.
|
|
@ -8,13 +8,13 @@ __metaclass__ = type
|
|||
import os
|
||||
import re
|
||||
|
||||
from ast import literal_eval
|
||||
from ansible.module_utils._text import to_native, to_text
|
||||
from ansible.module_utils.common._json_compat import json
|
||||
from ansible.module_utils.common.collections import is_iterable
|
||||
from ansible.module_utils.common.text.converters import jsonify
|
||||
from ansible.module_utils.common.text.formatters import human_to_bytes
|
||||
from ansible.module_utils.parsing.convert_bool import boolean
|
||||
from ansible.module_utils.pycompat24 import literal_eval
|
||||
from ansible.module_utils.six import (
|
||||
binary_type,
|
||||
integer_types,
|
||||
|
|
Loading…
Reference in a new issue