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,6 +42,12 @@ import shlex
import getopt
import inspect
import operator
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