|
@@ -157,15 +157,15 @@ class Cache:
|
|
|
|
|
|
|
|
return self.cached + h.hexdigest()
|
|
return self.cached + h.hexdigest()
|
|
|
|
|
|
|
|
- def concatenate(self):
|
|
|
|
|
- contents = ''
|
|
|
|
|
|
|
+ def content(self):
|
|
|
|
|
+ content = ''
|
|
|
|
|
|
|
|
for path in self.files:
|
|
for path in self.files:
|
|
|
f = open(path, 'r')
|
|
f = open(path, 'r')
|
|
|
- contents += f.read()
|
|
|
|
|
|
|
+ content += f.read()
|
|
|
f.close()
|
|
f.close()
|
|
|
|
|
|
|
|
- return contents
|
|
|
|
|
|
|
+ return content
|
|
|
|
|
|
|
|
def output(self):
|
|
def output(self):
|
|
|
""""""
|
|
""""""
|
|
@@ -191,7 +191,7 @@ class Cache:
|
|
|
if server_modified:
|
|
if server_modified:
|
|
|
self.save_administration(admin)
|
|
self.save_administration(admin)
|
|
|
|
|
|
|
|
- content = self.concatenate()
|
|
|
|
|
|
|
+ content = self.content()
|
|
|
f = open(path, 'w')
|
|
f = open(path, 'w')
|
|
|
f.write(content)
|
|
f.write(content)
|
|
|
f.close()
|
|
f.close()
|