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

Commit

Permalink
Nuke: fixing unicode type detection in effect loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubjezek001 committed Apr 1, 2022
1 parent 6aeb40d commit 6916cc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion openpype/hosts/nuke/plugins/load/load_effects.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
from collections import OrderedDict
import nuke
import six

from avalon import io

Expand Down Expand Up @@ -333,7 +334,7 @@ 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, str):
elif isinstance(input, six.text_type):
return str(input)
else:
return input
Expand Down
4 changes: 2 additions & 2 deletions openpype/hosts/nuke/plugins/load/load_effects_ip.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
from collections import OrderedDict

import six
import nuke

from avalon import io
Expand Down Expand Up @@ -353,7 +353,7 @@ 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, str):
elif isinstance(input, six.text_type):
return str(input)
else:
return input
Expand Down

0 comments on commit 6916cc7

Please sign in to comment.