Closed
Description
This code:
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
doesn't work: it complains error: Name 'StringIO' already defined
on the second import. I think this is because in cStringIO, the function StringIO is an overloaded function (returning different types with and without argument) while in StringIO.py there is a class StringIO.
I'm not sure how to fix this.