diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2019-01-06 18:20:49 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-01-10 09:08:15 +0100 |
commit | 06a460b3487ad58cc941169481cce073e2a196cc (patch) | |
tree | 1e64c49a26458a0536f5124460b39b199ddda42f /misc/update-gtkdoc-tests.py | |
parent | 9826d952358c8330d72ecba062f489fbdc31bbd1 (diff) | |
download | gobject-introspection-06a460b3487ad58cc941169481cce073e2a196cc.tar.gz |
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.
Diffstat (limited to 'misc/update-gtkdoc-tests.py')
-rw-r--r-- | misc/update-gtkdoc-tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |