From 5a86ecf805ad8a46dddd8caae9af67d0a78dcce2 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 20 Jan 2014 16:32:46 +0100 Subject: fixed py 2.5 incompatibility --- pyload/setup/Setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyload/setup/Setup.py b/pyload/setup/Setup.py index 1af9f0d1d..94e7dbd3b 100644 --- a/pyload/setup/Setup.py +++ b/pyload/setup/Setup.py @@ -267,7 +267,7 @@ class Setup(): password = self.ask("", "", password=True) admin = self.ask("Admin?", self.yes, bool=True) - self.db.addUser(username, password, Role.Admin if admin else Role.User, 0b1111111) + self.db.addUser(username, password, Role.Admin if admin else Role.User, int('1111111', 2)) elif action == "2": print "" print _("Users") @@ -291,7 +291,7 @@ class Setup(): def addUser(self, username, password, role=Role.Admin): self.openDB() try: - self.db.addUser(username, password, role, 0b1111111) + self.db.addUser(username, password, role, int('1111111', 2)) finally: self.closeDB() -- cgit v1.2.3