Sudo: Fix error with Python 3

master
Valentin Lorentz 2013-11-28 15:09:36 +01:00
parent e4ce1cc6a1
commit 2069721fa0
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class Sudo(callbacks.Plugin):
os.unlink(self._path)
except OSError:
pass
self.db.save(open(self._path, 'au'))
self.db.save(open(self._path, 'a'))
callbacks.Plugin.die(self)