Mercurial > piecrust2
diff piecrust/cache.py @ 719:a066f4ac9094
rendering: Use `fastpickle` serialization before JSON.
This is because JSON loses information about stuff like tuples.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 28 May 2016 15:43:24 -0700 |
parents | 61d606fbc313 |
children | 4850f8c21b6e |
line wrap: on
line diff
--- a/piecrust/cache.py Sat May 28 15:41:51 2016 -0700 +++ b/piecrust/cache.py Sat May 28 15:43:24 2016 -0700 @@ -201,9 +201,7 @@ logger.debug("'%s' found in file-system cache." % key) item_raw = self.fs_cache.read(fs_key) - item = json.loads( - item_raw, - object_pairs_hook=collections.OrderedDict) + item = json.loads(item_raw) self.cache.put(key, item) self._hits += 1 return item