From 8565e4dc0b7acd16078700c03031beca8d26be77 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 17 Aug 2015 00:05:23 +0300 Subject: Misc fixes --- servo/lib/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'servo/lib/utils.py') diff --git a/servo/lib/utils.py b/servo/lib/utils.py index ac2ee05..20da7d5 100644 --- a/servo/lib/utils.py +++ b/servo/lib/utils.py @@ -48,5 +48,6 @@ def cache_getset(k, v): if cache.get(k): return cache.get(k) - cache.set(k, v()) - return v + val = v() + cache.set(k, val) + return val -- cgit v1.2.3