summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-20 23:30:43 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-20 23:30:43 +0100
commitb22eaf5d8b1e472eaaebb176234843f38d97e102 (patch)
treece7e4e6116ea5ff7acfcc894a58e303750373fdd
parentfile_list fix, webinterface termination fix AGAIN -.-' (diff)
downloadpyload-b22eaf5d8b1e472eaaebb176234843f38d97e102.tar.xz
python 2.5 compatibility
-rw-r--r--module/web/ServerThread.py1
-rw-r--r--module/web/manage.py3
2 files changed, 2 insertions, 2 deletions
diff --git a/module/web/ServerThread.py b/module/web/ServerThread.py
index d9f0f8cdc..2ac39c2c8 100644
--- a/module/web/ServerThread.py
+++ b/module/web/ServerThread.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+from __future__ import with_statement
import threading
from os.path import join
from subprocess import Popen, PIPE, STDOUT
diff --git a/module/web/manage.py b/module/web/manage.py
index 782f6fbe0..6a00ab565 100644
--- a/module/web/manage.py
+++ b/module/web/manage.py
@@ -1,9 +1,8 @@
#!/usr/bin/env python
-
+from __future__ import with_statement
import os
pid = os.fork()
-
if pid:
with open("webserver.pid", "w") as f:
f.write(str(pid))