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,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
|
||||
|
Loading…
Reference in New Issue
Block a user