ansible: cStringIO interprets unicode as a buffer obj on 2.x
This commit is contained in:
parent
04e138e060
commit
34751c38b0
|
@ -52,7 +52,8 @@ import mitogen.core
|
|||
import ansible_mitogen.target # TODO: circular import
|
||||
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
# Cannot use cStringIO as it does not support Unicode.
|
||||
from StringIO import StringIO
|
||||
except ImportError:
|
||||
from io import StringIO
|
||||
|
||||
|
|
Loading…
Reference in New Issue