From b7d26d1d3d80f8ec72e198e3d72fc9210e2d5b95 Mon Sep 17 00:00:00 2001 From: chris Date: Sun, 9 Feb 2014 21:20:21 +0100 Subject: [PATCH] singletonize Hashstore. --- blogtopoid/blogtopoid.py | 1 + 1 file changed, 1 insertion(+) diff --git a/blogtopoid/blogtopoid.py b/blogtopoid/blogtopoid.py index 5c422f1..6669b62 100644 --- a/blogtopoid/blogtopoid.py +++ b/blogtopoid/blogtopoid.py @@ -209,6 +209,7 @@ class Page(Post): self.link = "{}{}".format(config.blogurl, self.outfile) +@singleton class Hashstore(object): """ store file hashes in a json file """ def __init__(self, jsonfile):