From 06a460b3487ad58cc941169481cce073e2a196cc Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 6 Jan 2019 18:20:49 +0100 Subject: message: simplify handling of error levels Instead of allowing each error level to be enabled just enable all of them through the enable_warnings() method. This matches what the code is currently doing (minus that one helper script) and simplifies things. Also remove the error count, it's not used. --- misc/update-gtkdoc-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/update-gtkdoc-tests.py b/misc/update-gtkdoc-tests.py index 566d6ac0..c182fc11 100644 --- a/misc/update-gtkdoc-tests.py +++ b/misc/update-gtkdoc-tests.py @@ -189,7 +189,7 @@ if __name__ == '__main__': logger = MessageLogger.get(namespace=None) parser = GtkDocCommentBlockParser() writer = GtkDocCommentBlockWriter(indent=True) - logger.enable_warnings((ERROR, FATAL)) + logger.enable_warnings(True) with io.open(path, 'r') as f: lines = f.readlines() -- cgit v1.2.1