mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-06 11:27:19 +02:00
[core] Remove reference to pyCompatibility
pyCompatibility has been removed at the same time as Python 2 support.
This commit is contained in:
parent
7688b94ce5
commit
835e396d8d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue