Sudo: Fix compatibility with Python 3.
parent
820bed47bb
commit
3810941db4
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue