diff options
author | mkaay <mkaay@mkaay.de> | 2009-12-20 23:30:43 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-12-20 23:30:43 +0100 |
commit | b22eaf5d8b1e472eaaebb176234843f38d97e102 (patch) | |
tree | ce7e4e6116ea5ff7acfcc894a58e303750373fdd /module | |
parent | file_list fix, webinterface termination fix AGAIN -.-' (diff) | |
download | pyload-b22eaf5d8b1e472eaaebb176234843f38d97e102.tar.xz |
python 2.5 compatibility
Diffstat (limited to 'module')
-rw-r--r-- | module/web/ServerThread.py | 1 | ||||
-rw-r--r-- | module/web/manage.py | 3 |
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)) |