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

pull/15204/head
James Cammarata 9 years ago
parent 435924f3de
commit 6ad5c0f4f6

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

Loading…
Cancel
Save