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

This commit is contained in:
David Wilson 2018-07-04 23:28:25 +00:00
parent 04e138e060
commit 34751c38b0
1 changed files with 2 additions and 1 deletions

View File

@ -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