mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
core: Fix issue with Python 2.6 (cStringIO is buggy).
This commit is contained in:
parent
52e91d5f9c
commit
a5292ae3b4
@ -42,7 +42,13 @@ import shlex
|
||||
import getopt
|
||||
import inspect
|
||||
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.conf as conf
|
||||
|
Loading…
Reference in New Issue
Block a user