Sudo: Fix compatibility with Python 3.

master
Valentin Lorentz 2013-06-16 07:09:54 +00:00
parent 820bed47bb
commit 3810941db4
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class Sudo(callbacks.Plugin):
self.db = SudoDB()
self._path = os.path.join(conf.supybot.directories.data(), 'sudo.db')
if not world.testing and os.path.isfile(self._path):
self.db.load(open(self._path, 'ru'))
self.db.load(open(self._path, 'r'))
@internationalizeDocstring
def add(self, irc, msg, args, priority, name, mode, hostmask, regexp):