diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-08-17 00:05:23 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-08-17 00:05:23 +0300 |
commit | 8565e4dc0b7acd16078700c03031beca8d26be77 (patch) | |
tree | 014035d543dfa8de7d9b1c9407daf54a89ac4f67 /servo/lib | |
parent | 424bfdb617003dc8cddc4c10afb64583824341db (diff) | |
download | Servo-8565e4dc0b7acd16078700c03031beca8d26be77.tar.gz Servo-8565e4dc0b7acd16078700c03031beca8d26be77.tar.bz2 Servo-8565e4dc0b7acd16078700c03031beca8d26be77.zip |
Misc fixes
Diffstat (limited to 'servo/lib')
-rw-r--r-- | servo/lib/utils.py | 5 |
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 |