Commit 93faa1c1 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Made Users be context managers

parent db88bce4c219
......@@ -240,3 +240,10 @@ class User(object):"%r: access token generated in %.2f seconds",
self, time.time() - start)
def __enter__(self):
return self
def __exit__(self, *exc_args):
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment