summaryrefslogtreecommitdiffstats
path: root/pyload/manager/Account.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/manager/Account.py')
-rw-r--r--pyload/manager/Account.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/manager/Account.py b/pyload/manager/Account.py
index ad770a1a8..b743ccabc 100644
--- a/pyload/manager/Account.py
+++ b/pyload/manager/Account.py
@@ -2,11 +2,10 @@
from __future__ import with_statement
+import os
import shutil
import threading
-from os.path import exists
-
from pyload.manager.Event import AccountUpdateEvent
from pyload.utils import chmod, lock
@@ -133,7 +132,7 @@ class AccountManager(object):
for option, values in data['options'].iteritems():
f.write("\t@%s %s\n" % (option, " ".join(values)))
- chmod(f.name, 0600)
+ os.chmod(f.name, 0600)
except Exception, e:
self.core.log.error(str(e))