farshidce/pym — pull request #1 by thebigjc (2012-06-13 16:26:06+00:00)
Title: Added support for enter/exit in VBucketAwareMembaseClient

I noticed done() needs to be called or my program wouldn't exit - the dispatcher thread was still running. Rather than need to call it by hand, I added support for 2.5s 'with' statement, so now I can do:

with VBucketAwareMembaseClient(URL, BUCKET, PASSWORD) as c:
c.get(key)

and not have to worry about calling 'done()'