Conditionally import StringIO in template so we only use io.StringIO on py3

pull/14755/head
James Cammarata 9 years ago
parent 7404d4ce7f
commit 3247390123

@ -23,6 +23,10 @@ import ast
import contextlib import contextlib
import os import os
import re import re
try:
from StringIO import StringIO
except ImportError:
from io import StringIO from io import StringIO
from ansible.compat.six import string_types, text_type, binary_type from ansible.compat.six import string_types, text_type, binary_type

Loading…
Cancel
Save