From cc07c2fcd3a10080d69b28b591d090fa008af023 Mon Sep 17 00:00:00 2001 From: kiinami Date: Thu, 17 Aug 2023 17:46:38 +0200 Subject: [PATCH 1/2] fix: using dedicated logger instead of root logger --- svglib/svglib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svglib/svglib.py b/svglib/svglib.py index 727b669..e77df4d 100755 --- a/svglib/svglib.py +++ b/svglib/svglib.py @@ -653,7 +653,7 @@ def get_shape_from_node(node): elif isinstance(shape, Path): return ClippingPath(copy_from=shape) elif shape: - logging.error("Unsupported shape type %s for clipping", shape.__class__.__name__) + logger.error("Unsupported shape type %s for clipping", shape.__class__.__name__) def print_unused_attributes(self, node): if logger.level > logging.DEBUG: From e4bd552972089db610ddf7caf01e45e860cf420a Mon Sep 17 00:00:00 2001 From: kiinami Date: Thu, 17 Aug 2023 17:52:02 +0200 Subject: [PATCH 2/2] refactor: shortening lines --- svglib/svglib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/svglib/svglib.py b/svglib/svglib.py index e77df4d..a771e01 100755 --- a/svglib/svglib.py +++ b/svglib/svglib.py @@ -653,7 +653,10 @@ def get_shape_from_node(node): elif isinstance(shape, Path): return ClippingPath(copy_from=shape) elif shape: - logger.error("Unsupported shape type %s for clipping", shape.__class__.__name__) + logger.error( + "Unsupported shape type %s for clipping", + shape.__class__.__name__ + ) def print_unused_attributes(self, node): if logger.level > logging.DEBUG: