core: Fix issue with Python 2.6 (cStringIO is buggy).

This commit is contained in:
Valentin Lorentz 2013-01-06 11:34:32 +01:00
parent 52e91d5f9c
commit a5292ae3b4

View File

@ -42,7 +42,13 @@ import shlex
import getopt import getopt
import inspect import inspect
import operator import operator
from cStringIO import StringIO
if sys.version_info < (2, 7, 0):
# cStringIO is buggy.
# See http://paste.progval.net/show/227/
from StringIO import StringIO
else:
from cStringIO import StringIO
import supybot.log as log import supybot.log as log
import supybot.conf as conf import supybot.conf as conf