git://git.onelab.eu
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cc351d9
)
Cache the entire file
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Thu, 2 Aug 2007 16:01:59 +0000
(16:01 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Thu, 2 Aug 2007 16:01:59 +0000
(16:01 +0000)
python/vserver.py
patch
|
blob
|
history
diff --git
a/python/vserver.py
b/python/vserver.py
index
5c32676
..
b621e4c
100644
(file)
--- a/
python/vserver.py
+++ b/
python/vserver.py
@@
-1,6
+1,6
@@
# Copyright 2005 Princeton University
-#$Id: vserver.py,v 1.7
0 2007/08/01 21:48
:42 dhozac Exp $
+#$Id: vserver.py,v 1.7
1 2007/08/02 15:26
:42 dhozac Exp $
import errno
import fcntl
@@
-128,7
+128,7
@@
class VServerConfig:
os.access(full_name, os.R_OK)):
f = open(full_name, "r")
cache[full_name.replace(os.path.join(self.dir, ''),
- '')] = f.read
line
().rstrip()
+ '')] = f.read().rstrip()
f.close()
os.path.walk(self.dir, add_to_cache, self.cache)