From 1b1779ee99315d4aa6d5a6852c296d251e52ff00 Mon Sep 17 00:00:00 2001 From: karnigen Date: Sat, 13 Jan 2024 15:42:49 +0100 Subject: style cleanup --- lib/threads/color.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/threads') diff --git a/lib/threads/color.py b/lib/threads/color.py index 44fa709c..8b73c4f3 100644 --- a/lib/threads/color.py +++ b/lib/threads/color.py @@ -20,9 +20,9 @@ class ThreadColor(object): * currentColor/context-fill/context-stroke: should not just be black, but we want to avoid error messages until inkex will be able to handle these css properties ''' - if type(color) == str and color.startswith(('url', 'currentColor', 'context')): + if isinstance(color, str) and color.startswith(('url', 'currentColor', 'context')): color = None - elif type(color) == str and color.startswith('rgb'): + elif isinstance(color, str) and color.startswith('rgb'): color = tuple(int(value) for value in color[4:-1].split(',')) if color is None: -- cgit v1.2.3