mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-25 18:04:00 +00:00
233e7ab58d
Co-authored-by: luoshuijs <luoshuijs@outlook.com> Co-authored-by: Karako <karakohear@gmail.com> Co-authored-by: xtaodada <xtao@xtaolink.cn>
12 lines
148 B
Python
12 lines
148 B
Python
from contextlib import contextmanager
|
|
|
|
__all__ = ["do_nothing"]
|
|
|
|
|
|
@contextmanager
|
|
def do_nothing():
|
|
try:
|
|
yield
|
|
finally:
|
|
...
|