summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/resilient/__init__.py4
-rwxr-xr-xbackend/update.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/backend/resilient/__init__.py b/backend/resilient/__init__.py
index e2b40c7..e441db9 100644
--- a/backend/resilient/__init__.py
+++ b/backend/resilient/__init__.py
@@ -31,7 +31,7 @@ for auth_subpath, auth_subpaths, auth_subfiles in os.walk(auth_path):
for auth_subfile in auth_subfiles:
auth_subfile = os.path.join(auth_subpath, auth_subfile)
if os.path.isfile(auth_subfile):
- os.chmod(auth_subfile, 0600)
+ os.chmod(auth_subfile, 0o600)
def url200(url):
try:
@@ -194,7 +194,7 @@ class ipfs:
def _config(self, key):
proc = subprocess.Popen(['ipfs', '-c', self.configdir, 'config', key], stdout=subprocess.PIPE)
for line in proc.stdout:
- return line[0:-1]
+ return line[0:-1]
def push(self):
if not ikiwiki.synced or not ipfs.found:
diff --git a/backend/update.py b/backend/update.py
index ac99655..8ed408f 100755
--- a/backend/update.py
+++ b/backend/update.py
@@ -106,4 +106,4 @@ for host in hosts:
#########################################
-print "Done."
+print ("Done.")