diff options
author | 2020-05-31 18:34:36 +0200 | |
---|---|---|
committer | 2020-05-31 18:34:36 +0200 | |
commit | 0737b1a63ca359e88ef580143e8e4e6a879c482e (patch) | |
tree | bb90bcd686a592d09648d58bd0d3915c94d9fcc6 /tests/helpers.py | |
parent | Remove unnecessary conditional. (diff) |
Add a mod_log.ignore_all context manager.
This new context manager makes it easier to make the mod_log ignore
actions like message deletions. The only existing method is the
`ignore()` method, which requires that you pass all the messages you
want to ignore into it.
This one just ignores everything inside its scope.
This isn't the DRYest approach, but it's low-cost and improves the
readability of clean.py quite a bit. Ideally we should go through and
give modlog a proper cleanup, because it's kinda ugly right now.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions