From da4283f4995283be5020e58eaf7fb02d014a07da Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Thu, 2 Aug 2007 16:01:59 +0000 Subject: [PATCH] Cache the entire file --- python/vserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/vserver.py b/python/vserver.py index 5c32676..b621e4c 100644 --- a/python/vserver.py +++ b/python/vserver.py @@ -1,6 +1,6 @@ # Copyright 2005 Princeton University -#$Id: vserver.py,v 1.70 2007/08/01 21:48:42 dhozac Exp $ +#$Id: vserver.py,v 1.71 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.readline().rstrip() + '')] = f.read().rstrip() f.close() os.path.walk(self.dir, add_to_cache, self.cache) -- 2.43.0