diff --git a/src/mutils/attribute.py b/src/mutils/attribute.py index e0b9f5e7..a32fb984 100644 --- a/src/mutils/attribute.py +++ b/src/mutils/attribute.py @@ -254,7 +254,7 @@ def type(self): try: self._type = maya.cmds.getAttr(self.fullname(), type=True) - self._type = self._type.encode('ascii') + self._type = six.text_type(self._type) except Exception: msg = 'Cannot GET attribute TYPE for "{0}"' msg = msg.format(self.fullname()) diff --git a/src/mutils/node.py b/src/mutils/node.py index c888151c..0e625c54 100644 --- a/src/mutils/node.py +++ b/src/mutils/node.py @@ -45,7 +45,7 @@ def __init__(self, name, attributes=None): :type name: str """ try: - self._name = six.text_type(name) # .encode('ascii') + self._name = six.text_type(name) # .encode('ascii') except UnicodeEncodeError: raise UnicodeEncodeError('Not a valid ascii name "%s".' % name) diff --git a/src/studiolibrary/__init__.py b/src/studiolibrary/__init__.py index 93bca2d2..f0ea97f4 100644 --- a/src/studiolibrary/__init__.py +++ b/src/studiolibrary/__init__.py @@ -10,7 +10,7 @@ # You should have received a copy of the GNU Lesser General Public # License along with this library. If not, see . -__version__ = "2.9.6.b2" +__version__ = "2.9.6.b3" def version():