aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-05-31 18:34:36 +0200
committerGravatar Leon Sandøy <[email protected]>2020-05-31 18:34:36 +0200
commit0737b1a63ca359e88ef580143e8e4e6a879c482e (patch)
treebb90bcd686a592d09648d58bd0d3915c94d9fcc6 /tests
parentRemove 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')
0 files changed, 0 insertions, 0 deletions