From 29944234e40f660a54506d29b2b092c926425e20 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 3 Feb 2014 23:40:54 +0000 Subject: [PATCH] ChannelLogger: Fix Python 2 compatibility. --- plugins/ChannelLogger/plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/ChannelLogger/plugin.py b/plugins/ChannelLogger/plugin.py index 9b411dacd..097e6c25b 100644 --- a/plugins/ChannelLogger/plugin.py +++ b/plugins/ChannelLogger/plugin.py @@ -29,7 +29,10 @@ ### import os +import sys import time +if sys.version_info[0] < 3: + from io import open from cStringIO import StringIO import supybot.conf as conf