Added empty contextmanager utility
- Dec 09, 2017
-
-
Duncan Macleod authored
-
Duncan Macleod authored
-
Duncan Macleod authored
useful for faking a contextmanager
-
This PR adds a new submodule gwpy.utils.misc
that provides null_context
, an empty contextmanager
useful in a with
statement where a context is optional (i.e. in progress bars for verbose utils.mp
).
useful for faking a contextmanager