Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
nuke: gizmo loader was also having unicode type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubjezek001 committed Apr 1, 2022
1 parent 6916cc7 commit 4fbf9c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openpype/hosts/nuke/plugins/load/load_gizmo_ip.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import nuke

import six
from avalon import io

from openpype.pipeline import (
Expand Down Expand Up @@ -243,8 +243,8 @@ def byteify(self, input):
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

Expand Down

0 comments on commit 4fbf9c3

Please sign in to comment.