remove six from pyblish pype

This commit is contained in:
Jakub Trllo 2025-02-10 19:01:24 +01:00
parent a711f346fb
commit ac54c441ec
2 changed files with 3 additions and 5 deletions

View file

@ -31,7 +31,6 @@ from . import settings, util
from .awesome import tags as awesome
from qtpy import QtCore, QtGui
import qtawesome
from six import text_type
from .constants import PluginStates, InstanceStates, GroupStates, Roles
@ -985,7 +984,7 @@ class TerminalModel(QtGui.QStandardItemModel):
record_item = record
else:
record_item = {
"label": text_type(record.msg),
"label": str(record.msg),
"type": "record",
"levelno": record.levelno,
"threadName": record.threadName,
@ -993,7 +992,7 @@ class TerminalModel(QtGui.QStandardItemModel):
"filename": record.filename,
"pathname": record.pathname,
"lineno": record.lineno,
"msg": text_type(record.msg),
"msg": str(record.msg),
"msecs": record.msecs,
"levelname": record.levelname
}

View file

@ -10,7 +10,6 @@ import sys
import collections
from qtpy import QtCore
from six import text_type
import pyblish.api
root = os.path.dirname(__file__)
@ -64,7 +63,7 @@ def u_print(msg, **kwargs):
**kwargs: Keyword argument for `print` function.
"""
if isinstance(msg, text_type):
if isinstance(msg, str):
encoding = None
try:
encoding = os.getenv('PYTHONIOENCODING', sys.stdout.encoding)