[Treepkg-commits] r35 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Mar 19 16:00:55 CET 2008
Author: bh
Date: 2008-03-19 16:00:54 +0100 (Wed, 19 Mar 2008)
New Revision: 35
Modified:
trunk/treepkg/util.py
Log:
Remove StatusFile. It has been superseded by the treepkg.util module
long ago.
Modified: trunk/treepkg/util.py
===================================================================
--- trunk/treepkg/util.py 2008-03-04 14:59:39 UTC (rev 34)
+++ trunk/treepkg/util.py 2008-03-19 15:00:54 UTC (rev 35)
@@ -1,4 +1,4 @@
-# Copyright (C) 2007 by Intevation GmbH
+# Copyright (C) 2007, 2008 by Intevation GmbH
# Authors:
# Bernhard Herzog <bh at intevation.de>
#
@@ -114,25 +114,3 @@
finally:
if os.path.exists(tempname):
os.remove(tempname)
-
-
-class StatusFile(object):
-
- def __init__(self, filename):
- assert os.path.isabs(filename)
- self.filename = filename
-
- def read(self):
- f = open(self.filename)
- try:
- self.status = f.read()
- finally:
- f.close()
-
- def set(self, status, extra=""):
- ensure_directory(os.path.dirname(self.filename))
- writefile(self.filename, status + "\n" + extra)
-
- def get(self):
- self.read()
- return self.status.strip()
More information about the Treepkg-commits
mailing list