summaryrefslogtreecommitdiff
path: root/lib/threads
diff options
context:
space:
mode:
Diffstat (limited to 'lib/threads')
-rw-r--r--lib/threads/color.py4
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: