ChannelLogger: Use open() instead of file().

This commit is contained in:
Valentin Lorentz 2012-08-07 20:53:06 +00:00
parent e00b8b9903
commit 1e794d88d7

View File

@ -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: