mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Use "with" context manager in examples
This commit is contained in:
parent
7d4dfa6d12
commit
9e3cf9edf7
1 changed files with 4 additions and 10 deletions
|
|
@ -35,11 +35,8 @@ Example:
|
||||||
password="password" # (if you have one)
|
password="password" # (if you have one)
|
||||||
)
|
)
|
||||||
|
|
||||||
app.start()
|
with app:
|
||||||
|
print(app.get_me())
|
||||||
print(app.get_me())
|
|
||||||
|
|
||||||
app.stop()
|
|
||||||
|
|
||||||
Sign Up
|
Sign Up
|
||||||
-------
|
-------
|
||||||
|
|
@ -67,8 +64,5 @@ Example:
|
||||||
last_name="" # Can be an empty string
|
last_name="" # Can be an empty string
|
||||||
)
|
)
|
||||||
|
|
||||||
app.start()
|
with app:
|
||||||
|
print(app.get_me())
|
||||||
print(app.get_me())
|
|
||||||
|
|
||||||
app.stop()
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue