Skip to content

Commit

Permalink
Fix attribute type encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
krathjen committed Jun 24, 2021
1 parent 7053049 commit bd1f563
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mutils/attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion src/mutils/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/studiolibrary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http://www.gnu.org/licenses/>.

__version__ = "2.9.6.b2"
__version__ = "2.9.6.b3"


def version():
Expand Down

0 comments on commit bd1f563

Please sign in to comment.