aboutsummaryrefslogtreecommitdiffstats
path: root/servo/lib/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'servo/lib/utils.py')
-rw-r--r--servo/lib/utils.py5
1 files changed, 3 insertions, 2 deletions
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