ansible: cStringIO interprets unicode as a buffer obj on 2.x

pull/295/head
David Wilson 6 years ago
parent 04e138e060
commit 34751c38b0

@ -52,7 +52,8 @@ import mitogen.core
import ansible_mitogen.target # TODO: circular import import ansible_mitogen.target # TODO: circular import
try: try:
from cStringIO import StringIO # Cannot use cStringIO as it does not support Unicode.
from StringIO import StringIO
except ImportError: except ImportError:
from io import StringIO from io import StringIO

Loading…
Cancel
Save