Commits

German Larrain committed 0a4e122

utils.py3: added import of `StringIO` from `io` or `cStringIO` depending on `PY3`

Comments (0)

Files changed (1)

south/utils/py3.py

     text_type = str
     raw_input = input
 
+    import io
+    StringIO = io.StringIO
+
 else:
     string_types = basestring,
     text_type = unicode
     raw_input = raw_input
 
+    import cStringIO
+    StringIO = cStringIO.StringIO
+
+
 def with_metaclass(meta, base=object):
     """Create a base class with a metaclass."""
     return meta("NewBase", (base,), {})