Use "with" context manager in examples
This commit is contained in:
parent
7d4dfa6d12
commit
9e3cf9edf7
@ -35,11 +35,8 @@ Example:
|
||||
password="password" # (if you have one)
|
||||
)
|
||||
|
||||
app.start()
|
||||
|
||||
print(app.get_me())
|
||||
|
||||
app.stop()
|
||||
with app:
|
||||
print(app.get_me())
|
||||
|
||||
Sign Up
|
||||
-------
|
||||
@ -67,8 +64,5 @@ Example:
|
||||
last_name="" # Can be an empty string
|
||||
)
|
||||
|
||||
app.start()
|
||||
|
||||
print(app.get_me())
|
||||
|
||||
app.stop()
|
||||
with app:
|
||||
print(app.get_me())
|
||||
|
Loading…
Reference in New Issue
Block a user