nuke: gizmo loader was also having unicode type tests

This commit is contained in:
Jakub Jezek 2022-04-01 17:08:22 +02:00
parent 6916cc73d3
commit 4fbf9c3050
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -1,5 +1,5 @@
import nuke
import six
from avalon import io
from openpype.pipeline import (
@ -243,8 +243,8 @@ class LoadGizmoInputProcess(load.LoaderPlugin):
for key, value in input.items()}
elif isinstance(input, list):
return [self.byteify(element) for element in input]
elif isinstance(input, unicode):
return input.encode('utf-8')
elif isinstance(input, six.text_type):
return str(input)
else:
return input