From 9dceb6b9463a584e56ff47c4c048df4f35d8b326 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 16 Jul 2021 10:00:38 +0200 Subject: [PATCH] minor pep fixes --- openpype/pipeline/creator_plugins.py | 2 -- openpype/tools/new_publisher/widgets.py | 1 - openpype/tools/new_publisher/window.py | 2 +- openpype/widgets/attribute_defs/widgets.py | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/openpype/pipeline/creator_plugins.py b/openpype/pipeline/creator_plugins.py index 66eff35c5a..cd4bea58fe 100644 --- a/openpype/pipeline/creator_plugins.py +++ b/openpype/pipeline/creator_plugins.py @@ -1,6 +1,5 @@ import copy import logging -import contextlib import collections from uuid import uuid4 @@ -368,7 +367,6 @@ class CreatedInstance: self._data["publish_attributes"].set_publish_plugins(attr_plugins) - @six.add_metaclass(ABCMeta) class BaseCreator: """Plugin that create and modify instance data before publishing process. diff --git a/openpype/tools/new_publisher/widgets.py b/openpype/tools/new_publisher/widgets.py index aad082c74b..8d295f41d3 100644 --- a/openpype/tools/new_publisher/widgets.py +++ b/openpype/tools/new_publisher/widgets.py @@ -740,7 +740,6 @@ class CreateDialog(QtWidgets.QDialog): # TODO better handling print(str(exc)) - if self.auto_close_checkbox.isChecked(): self.hide() diff --git a/openpype/tools/new_publisher/window.py b/openpype/tools/new_publisher/window.py index 0e8edb9525..485c227b5b 100644 --- a/openpype/tools/new_publisher/window.py +++ b/openpype/tools/new_publisher/window.py @@ -25,7 +25,7 @@ for path in [ ]: sys.path.append(path) -from Qt import QtWidgets, QtCore, QtGui +from Qt import QtWidgets from openpype import style from control import PublisherController diff --git a/openpype/widgets/attribute_defs/widgets.py b/openpype/widgets/attribute_defs/widgets.py index ecfa4b3afc..b2781dabfe 100644 --- a/openpype/widgets/attribute_defs/widgets.py +++ b/openpype/widgets/attribute_defs/widgets.py @@ -7,7 +7,7 @@ from openpype.pipeline.lib import ( EnumDef, BoolDef ) -from Qt import QtWidgets, QtCore, QtGui +from Qt import QtWidgets, QtCore def create_widget_for_attr_def(attr_def, parent=None):