mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-11 19:04:02 -07:00
Use io.StringIO and io.BytesIO instead of StringIO.StringIO for compat with py3
This commit is contained in:
parent
c29f51804b
commit
b70bf3b056
8 changed files with 38 additions and 27 deletions
|
@ -23,8 +23,9 @@ import ast
|
|||
import contextlib
|
||||
import os
|
||||
import re
|
||||
from io import StringIO
|
||||
|
||||
from ansible.compat.six import string_types, text_type, binary_type, StringIO
|
||||
from ansible.compat.six import string_types, text_type, binary_type
|
||||
from jinja2 import Environment
|
||||
from jinja2.loaders import FileSystemLoader
|
||||
from jinja2.exceptions import TemplateSyntaxError, UndefinedError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue