mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
nuke: gizmo loader was also having unicode type tests
This commit is contained in:
parent
6916cc73d3
commit
4fbf9c3050
1 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import nuke
|
import nuke
|
||||||
|
import six
|
||||||
from avalon import io
|
from avalon import io
|
||||||
|
|
||||||
from openpype.pipeline import (
|
from openpype.pipeline import (
|
||||||
|
|
@ -243,8 +243,8 @@ class LoadGizmoInputProcess(load.LoaderPlugin):
|
||||||
for key, value in input.items()}
|
for key, value in input.items()}
|
||||||
elif isinstance(input, list):
|
elif isinstance(input, list):
|
||||||
return [self.byteify(element) for element in input]
|
return [self.byteify(element) for element in input]
|
||||||
elif isinstance(input, unicode):
|
elif isinstance(input, six.text_type):
|
||||||
return input.encode('utf-8')
|
return str(input)
|
||||||
else:
|
else:
|
||||||
return input
|
return input
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue