aboutsummaryrefslogtreecommitdiffstats
path: root/servo/lib/utils.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-17 00:05:23 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-17 00:05:23 +0300
commit8565e4dc0b7acd16078700c03031beca8d26be77 (patch)
tree014035d543dfa8de7d9b1c9407daf54a89ac4f67 /servo/lib/utils.py
parent424bfdb617003dc8cddc4c10afb64583824341db (diff)
downloadServo-8565e4dc0b7acd16078700c03031beca8d26be77.tar.gz
Servo-8565e4dc0b7acd16078700c03031beca8d26be77.tar.bz2
Servo-8565e4dc0b7acd16078700c03031beca8d26be77.zip
Misc fixes
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