From b22eaf5d8b1e472eaaebb176234843f38d97e102 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sun, 20 Dec 2009 23:30:43 +0100 Subject: python 2.5 compatibility --- module/web/ServerThread.py | 1 + module/web/manage.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'module/web') 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)) -- cgit v1.2.3