mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-24 17:19:31 +00:00
12 lines
148 B
Python
12 lines
148 B
Python
|
from contextlib import contextmanager
|
||
|
|
||
|
__all__ = ["do_nothing"]
|
||
|
|
||
|
|
||
|
@contextmanager
|
||
|
def do_nothing():
|
||
|
try:
|
||
|
yield
|
||
|
finally:
|
||
|
...
|