From 1e794d88d7b40f9502ae9495f2ff8c2cba5be381 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 7 Aug 2012 20:53:06 +0000 Subject: [PATCH] ChannelLogger: Use open() instead of file(). --- plugins/ChannelLogger/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ChannelLogger/plugin.py b/plugins/ChannelLogger/plugin.py index ac08631b7..9512d74e1 100644 --- a/plugins/ChannelLogger/plugin.py +++ b/plugins/ChannelLogger/plugin.py @@ -148,7 +148,7 @@ class ChannelLogger(callbacks.Plugin): try: name = self.getLogName(channel) logDir = self.getLogDir(irc, channel) - log = file(os.path.join(logDir, name), 'a') + log = open(os.path.join(logDir, name), 'a') logs[channel] = log return log except IOError: