From 835e396d8dcb4ea5a4b50baf79b51da8aacc4d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Wed, 7 Dec 2022 12:38:10 +0100 Subject: [PATCH] [core] Remove reference to pyCompatibility pyCompatibility has been removed at the same time as Python 2 support. --- meshroom/core/desc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshroom/core/desc.py b/meshroom/core/desc.py index e5fc88fe..2d73a8b6 100644 --- a/meshroom/core/desc.py +++ b/meshroom/core/desc.py @@ -350,7 +350,7 @@ class ColorParam(Param): super(ColorParam, self).__init__(name=name, label=label, description=description, value=value, uid=uid, group=group, advanced=advanced, semantic=semantic, enabled=enabled) def validateValue(self, value): - if not isinstance(value, pyCompatibility.basestring) or len(value.split(" ")) > 1: + if not isinstance(value, str) or len(value.split(" ")) > 1: raise ValueError('ColorParam value should be a string containing either an SVG name or an hexadecimal ' 'color code (param: {}, value: {}, type: {})'.format(self.name, value, type(value))) return value