MemcacheLock: return lock on __enter__
commit4eb61b70bbd2d11b2c88f679f8350e153c8d9c9d
authorBrian Simpson <bsimpson63@gmail.com>
Fri, 8 Apr 2016 00:09:54 +0000 (7 17:09 -0700)
committerBrian Simpson <bsimpson63@gmail.com>
Wed, 27 Apr 2016 21:28:09 +0000 (27 14:28 -0700)
tree0270456519c99224632eff36a676f7601cb56761
parenteffeaa59438d8239d6971d10f9a2a5a8de20a8d5
MemcacheLock: return lock on __enter__

This lets us do `with g.make_lock(...) as lock: ...`
r2/r2/lib/lock.py