diff options
| author | karnigen <karnigen@gmail.com> | 2024-01-13 15:42:49 +0100 |
|---|---|---|
| committer | karnigen <karnigen@gmail.com> | 2024-01-13 15:42:49 +0100 |
| commit | 1b1779ee99315d4aa6d5a6852c296d251e52ff00 (patch) | |
| tree | 436c3ba20b37961eb17c2c32a5bfc950e9c5bbb0 /lib/threads | |
| parent | bc991aaa250339ea2d1ca96c9d531e39d8027ab7 (diff) | |
style cleanup
Diffstat (limited to 'lib/threads')
| -rw-r--r-- | lib/threads/color.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |
