PaiGram/utils/decorator.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
148 B
Python
Raw Normal View History

from contextlib import contextmanager
__all__ = ["do_nothing"]
@contextmanager
def do_nothing():
try:
yield
finally:
...