Sat, 10 Apr 2021 18:38:27 +0200
Applied some more code simplifications suggested by the new Simplify checker (super(Foo, self) => super()).
--- a/eric6/CondaInterface/Conda.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/CondaInterface/Conda.py Sat Apr 10 18:38:27 2021 +0200 @@ -43,7 +43,7 @@ @param parent parent @type QObject """ - super(Conda, self).__init__(parent) + super().__init__(parent) self.__ui = parent
--- a/eric6/CondaInterface/CondaExecDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/CondaInterface/CondaExecDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CondaExecDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/CondaInterface/CondaExportDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/CondaInterface/CondaExportDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -41,7 +41,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CondaExportDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/CondaInterface/CondaInfoDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/CondaInterface/CondaInfoDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CondaInfoDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/CondaInterface/CondaNewEnvironmentDataDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/CondaInterface/CondaNewEnvironmentDataDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CondaNewEnvironmentDataDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowTitle(title)
--- a/eric6/CondaInterface/CondaPackageDetailsWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/CondaInterface/CondaPackageDetailsWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CondaPackageDetailsWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.headerLabel.setText(self.tr("<b>{0} / {1} / {2}</b>").format( @@ -75,7 +75,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CondaPackageDetailsDialog, self).__init__(parent) + super().__init__(parent) self.setSizeGripEnabled(True) self.__layout = QVBoxLayout(self)
--- a/eric6/CondaInterface/CondaPackagesWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/CondaInterface/CondaPackagesWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -46,7 +46,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CondaPackagesWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__conda = conda
--- a/eric6/Cooperation/ChatWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Cooperation/ChatWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -54,7 +54,7 @@ @param port port to be used for the cooperation server (integer) @param parent reference to the parent widget (QWidget) """ - super(ChatWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.shareButton.setIcon(
--- a/eric6/Cooperation/Connection.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Cooperation/Connection.py Sat Apr 10 18:38:27 2021 +0200 @@ -73,7 +73,7 @@ @param parent referenec to the parent object (QObject) """ - super(Connection, self).__init__(parent) + super().__init__(parent) self.__greetingMessage = self.tr("undefined") self.__username = self.tr("unknown")
--- a/eric6/Cooperation/CooperationClient.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Cooperation/CooperationClient.py Sat Apr 10 18:38:27 2021 +0200 @@ -48,7 +48,7 @@ @param parent reference to the parent object (QObject) """ - super(CooperationClient, self).__init__(parent) + super().__init__(parent) self.__chatWidget = parent
--- a/eric6/Cooperation/CooperationServer.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Cooperation/CooperationServer.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param address address the server should listen on (QHostAddress) @param parent reference to the parent object (QObject) """ - super(CooperationServer, self).__init__(parent) + super().__init__(parent) self.__address = address
--- a/eric6/DataViews/CodeMetricsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/DataViews/CodeMetricsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param parent parent widget (QWidget) """ - super(CodeMetricsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/DataViews/PyCoverageDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/DataViews/PyCoverageDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -36,7 +36,7 @@ @param parent parent widget (QWidget) """ - super(PyCoverageDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/DataViews/PyProfileDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/DataViews/PyProfileDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -63,7 +63,7 @@ @param parent parent widget (QWidget) """ - super(PyProfileDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/DebugClients/Python/DebugVariables.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/DebugClients/Python/DebugVariables.py Sat Apr 10 18:38:27 2021 +0200 @@ -180,7 +180,7 @@ yield start, d # in case it has additional fields - d = super(DictResolver, self).getDictionary(var) + d = super().getDictionary(var) yield -1, d while True: @@ -237,7 +237,7 @@ yield start, d # in case it has additional fields - d = super(ListResolver, self).getDictionary(var) + d = super().getDictionary(var) yield -1, d while True: @@ -264,7 +264,7 @@ @return value of the attribute @rtype any """ - return super(DictViewResolver, self).resolve(list(var), attribute) + return super().resolve(list(var), attribute) def getDictionary(self, var): """ @@ -275,7 +275,7 @@ @return dictionary containing the variable attributes @rtype dict """ - return super(DictViewResolver, self).getDictionary(list(var)) + return super().getDictionary(list(var)) ############################################################ @@ -336,7 +336,7 @@ yield start, d # in case it has additional fields - additionals = super(SetResolver, self).getDictionary(var) + additionals = super().getDictionary(var) yield -1, additionals while True: @@ -433,7 +433,7 @@ yield start, d # in case it has additional fields - d = super(NdArrayResolver, self).getDictionary(var) + d = super().getDictionary(var) if var.size > 1024 * 1024: d['min'] = ( @@ -529,7 +529,7 @@ yield start, d # in case it has additional fields - d = super(DictResolver, self).getDictionary(var) + d = super().getDictionary(var) yield -1, d while True: @@ -606,7 +606,7 @@ yield start, d # in case it has additional fields - d = super(ArrayResolver, self).getDictionary(var) + d = super().getDictionary(var) # Special data for array type: convert typecode to readable text d['type'] = self.TypeCodeMap.get(var.typecode, 'illegal type')
--- a/eric6/DebugClients/Python/QProcessExtension.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/DebugClients/Python/QProcessExtension.py Sat Apr 10 18:38:27 2021 +0200 @@ -36,7 +36,7 @@ """ Constructor """ - super(QProcessWrapper, self).__init__(parent) + super().__init__(parent) ################################################################### ## Handling of 'start(...)' below @@ -87,11 +87,11 @@ _debugClient, [program] + arguments, ) - super(QProcessWrapper, self).start( + super().start( newArgs[0], newArgs[1:], mode) return - super(QProcessWrapper, self).start(*args, **kwargs) + super().start(*args, **kwargs) ################################################################### ## Handling of 'startDetached(...)' below @@ -147,7 +147,7 @@ return QProcessWrapper.startDetachedStatic( program, arguments, wd) - return super(QProcessWrapper, self).startDetached(*args, **kwargs) + return super().startDetached(*args, **kwargs) @staticmethod def startDetachedStatic(*args, **kwargs):
--- a/eric6/DebugClients/Python/SubprocessExtension.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/DebugClients/Python/SubprocessExtension.py Sat Apr 10 18:38:27 2021 +0200 @@ -61,7 +61,7 @@ _debugClient, arguments, noRedirect=True ) - super(PopenWrapper, self).__init__(arguments, *args, **kwargs) + super().__init__(arguments, *args, **kwargs) _debugClient = debugClient module.Popen = PopenWrapper
--- a/eric6/DebugClients/Python/ThreadExtension.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/DebugClients/Python/ThreadExtension.py Sat Apr 10 18:38:27 2021 +0200 @@ -298,7 +298,7 @@ # intercept the thread creation by threading.Thread self.run = lambda s=self, run=self.run: _bootstrap(s, run) - super(ThreadWrapper, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) module.Thread = ThreadWrapper @@ -313,7 +313,7 @@ """ Constructor """ - super(TimerWrapper, self).__init__( + super().__init__( interval, function, *args, **kwargs) module.Timer = TimerWrapper @@ -327,7 +327,7 @@ """ Constructor """ - super(DummyThreadWrapper, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) module._DummyThread = DummyThreadWrapper @@ -390,7 +390,7 @@ self.run = lambda s=self, run=self.run: ( _bootstrapQThread(s, run)) - super(QThreadWrapper, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class QRunnableWrapper(module.QRunnable): """ @@ -405,7 +405,7 @@ self.run = lambda s=self, run=self.run: ( _bootstrapQThread(s, run)) - super(QRunnableWrapper, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) module.QThread = QThreadWrapper module.QRunnable = QRunnableWrapper
--- a/eric6/Debugger/BreakPointModel.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/BreakPointModel.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param parent reference to the parent widget @type QObject """ - super(BreakPointModel, self).__init__(parent) + super().__init__(parent) self.__project = project
--- a/eric6/Debugger/BreakPointViewer.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/BreakPointViewer.py Sat Apr 10 18:38:27 2021 +0200 @@ -38,7 +38,7 @@ @param parent the parent (QWidget) """ - super(BreakPointViewer, self).__init__(parent) + super().__init__(parent) self.setObjectName("BreakPointViewer") self.__model = None @@ -77,7 +77,7 @@ self.sortingModel = QSortFilterProxyModel() self.sortingModel.setDynamicSortFilter(True) self.sortingModel.setSourceModel(self.__model) - super(BreakPointViewer, self).setModel(self.sortingModel) + super().setModel(self.sortingModel) header = self.header() header.setSortIndicator(0, Qt.SortOrder.AscendingOrder)
--- a/eric6/Debugger/CallStackViewer.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/CallStackViewer.py Sat Apr 10 18:38:27 2021 +0200 @@ -40,7 +40,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CallStackViewer, self).__init__(parent) + super().__init__(parent) self.__layout = QVBoxLayout(self) self.setLayout(self.__layout)
--- a/eric6/Debugger/CallTraceViewer.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/CallTraceViewer.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CallTraceViewer, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__dbs = debugServer
--- a/eric6/Debugger/DebugServer.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/DebugServer.py Sat Apr 10 18:38:27 2021 +0200 @@ -186,7 +186,7 @@ @param parent reference to the parent object @type QObject """ - super(DebugServer, self).__init__(parent) + super().__init__(parent) self.__originalPathString = originalPathString
--- a/eric6/Debugger/DebugUI.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/DebugUI.py Sat Apr 10 18:38:27 2021 +0200 @@ -70,7 +70,7 @@ @param debugViewer reference to the debug viewer widget @param project reference to the project object """ - super(DebugUI, self).__init__(ui) + super().__init__(ui) self.ui = ui self.viewmanager = vm
--- a/eric6/Debugger/DebugViewer.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/DebugViewer.py Sat Apr 10 18:38:27 2021 +0200 @@ -82,7 +82,7 @@ @param parent parent widget @type QWidget """ - super(DebugViewer, self).__init__(parent) + super().__init__(parent) self.debugServer = debugServer self.debugUI = None
--- a/eric6/Debugger/DebuggerInterfaceNone.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/DebuggerInterfaceNone.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param passive flag indicating passive connection mode @type bool """ - super(DebuggerInterfaceNone, self).__init__() + super().__init__() self.debugServer = debugServer self.passive = passive
--- a/eric6/Debugger/DebuggerInterfacePython.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/DebuggerInterfacePython.py Sat Apr 10 18:38:27 2021 +0200 @@ -44,7 +44,7 @@ @param passive flag indicating passive connection mode @type bool """ - super(DebuggerInterfacePython, self).__init__() + super().__init__() self.__isNetworked = True self.__autoContinue = False
--- a/eric6/Debugger/EditBreakpointDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/EditBreakpointDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -37,7 +37,7 @@ @param filenameHistory list of recently used file names (list of strings) """ - super(EditBreakpointDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) if name: self.setObjectName(name)
--- a/eric6/Debugger/EditWatchpointDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/EditWatchpointDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -27,7 +27,7 @@ @param name the widget name of this dialog @param modal flag indicating a modal dialog """ - super(EditWatchpointDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) if name: self.setObjectName(name)
--- a/eric6/Debugger/ExceptionLogger.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/ExceptionLogger.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param parent the parent widget of this widget """ - super(ExceptionLogger, self).__init__(parent) + super().__init__(parent) self.setObjectName("ExceptionLogger") self.setWindowTitle(self.tr("Exceptions"))
--- a/eric6/Debugger/ExceptionsFilterDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/ExceptionsFilterDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param ignore flag indicating the ignore exceptions mode (boolean) @param parent the parent widget (QWidget) """ - super(ExceptionsFilterDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setModal(True)
--- a/eric6/Debugger/StartDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/StartDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -79,7 +79,7 @@ data @type dict """ - super(StartDialog, self).__init__(parent) + super().__init__(parent) self.setModal(True) self.dialogType = dialogType
--- a/eric6/Debugger/StartHistoryEditDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/StartHistoryEditDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param parent reference to the parent widget @type QWidget """ - super(StartHistoryEditDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.historyList.addItems(history)
--- a/eric6/Debugger/VariableDetailDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/VariableDetailDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param vtype the variables type (string) @param value the variables value (string) """ - super(VariableDetailDialog, self).__init__() + super().__init__() self.setupUi(self) # set the different fields
--- a/eric6/Debugger/VariablesFilterDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/VariablesFilterDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param name name of this dialog (string) @param modal flag to indicate a modal dialog (boolean) """ - super(VariablesFilterDialog, self).__init__(parent) + super().__init__(parent) if name: self.setObjectName(name) self.setModal(modal)
--- a/eric6/Debugger/VariablesViewer.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/VariablesViewer.py Sat Apr 10 18:38:27 2021 +0200 @@ -263,7 +263,7 @@ variables @type bool """ - super(VariablesModel, self).__init__() + super().__init__() self.treeView = treeView self.proxyModel = treeView.proxyModel @@ -865,7 +865,7 @@ @param parent the parent model index @type QModelIndex """ - super(VariablesProxyModel, self).__init__(parent) + super().__init__(parent) self.setSortRole(SORT_ROLE) def hasChildren(self, parent): @@ -928,7 +928,7 @@ @param parent the parent @type QWidget """ - super(VariablesViewer, self).__init__(parent) + super().__init__(parent) self.__debugViewer = viewer self.__globalScope = globalScope @@ -1046,7 +1046,7 @@ @type int """ self.varModel.getMore() - super(VariablesViewer, self).verticalScrollbarValueChanged(value) + super().verticalScrollbarValueChanged(value) def resizeEvent(self, event): """ @@ -1056,7 +1056,7 @@ @type QResizeEvent """ self.varModel.getMore() - super(VariablesViewer, self).resizeEvent(event) + super().resizeEvent(event) def __itemDoubleClicked(self, index): """
--- a/eric6/Debugger/WatchPointModel.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/WatchPointModel.py Sat Apr 10 18:38:27 2021 +0200 @@ -27,7 +27,7 @@ @param parent reference to the parent widget (QObject) """ - super(WatchPointModel, self).__init__(parent) + super().__init__(parent) self.watchpoints = [] self.header = [
--- a/eric6/Debugger/WatchPointViewer.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Debugger/WatchPointViewer.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param parent the parent (QWidget) """ - super(WatchPointViewer, self).__init__(parent) + super().__init__(parent) self.setObjectName("WatchExpressionViewer") self.__model = None @@ -65,7 +65,7 @@ self.sortingModel = QSortFilterProxyModel() self.sortingModel.setDynamicSortFilter(True) self.sortingModel.setSourceModel(self.__model) - super(WatchPointViewer, self).setModel(self.sortingModel) + super().setModel(self.sortingModel) header = self.header() header.setSortIndicator(0, Qt.SortOrder.AscendingOrder)
--- a/eric6/E5Graphics/E5ArrowItem.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Graphics/E5ArrowItem.py Sat Apr 10 18:38:27 2021 +0200 @@ -43,7 +43,7 @@ @param parent reference to the parent object @type QGraphicsItem """ - super(E5ArrowItem, self).__init__(parent) + super().__init__(parent) self._origin = QPointF() if origin is None else QPointF(origin) self._end = QPointF() if end is None else QPointF(end)
--- a/eric6/E5Graphics/E5GraphicsView.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Graphics/E5GraphicsView.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param scene reference to the scene object (QGraphicsScene) @param parent parent widget (QWidget) """ - super(E5GraphicsView, self).__init__(scene, parent) + super().__init__(scene, parent) self.setObjectName("E5GraphicsView") self.__initialSceneSize = self.scene().sceneRect().size()
--- a/eric6/E5Gui/E5Action.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5Action.py Sat Apr 10 18:38:27 2021 +0200 @@ -89,7 +89,7 @@ 7 + incr, len(args))) parent = args[4 + incr] - super(E5Action, self).__init__(parent) + super().__init__(parent) name = args[5 + incr] if name: self.setObjectName(name) @@ -153,7 +153,7 @@ @param shortcut the accelerator (QKeySequence) """ - super(E5Action, self).setShortcut(shortcut) + super().setShortcut(shortcut) self.__ammendToolTip() def setShortcuts(self, shortcuts): @@ -164,7 +164,7 @@ or key for a platform dependent list of accelerators (QKeySequence.StandardKey) """ - super(E5Action, self).setShortcuts(shortcuts) + super().setShortcuts(shortcuts) self.__ammendToolTip() def setIconText(self, text): @@ -173,7 +173,7 @@ @param text new icon text (string) """ - super(E5Action, self).setIconText(text) + super().setIconText(text) self.__ammendToolTip() def __ammendToolTip(self):
--- a/eric6/E5Gui/E5AnimatedLabel.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5AnimatedLabel.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @keyparam interval interval in milliseconds between animation frames @type int """ - super(E5AnimatedLabel, self).__init__(parent) + super().__init__(parent) self.__timer = QTimer(self) self.__timer.setInterval(interval) @@ -75,7 +75,7 @@ """ if self.__animationFileLoaded: self.__currentFrame = (self.__currentFrame + 1) % self.__frames - super(E5AnimatedLabel, self).setPixmap(self.__pixmap.copy( + super().setPixmap(self.__pixmap.copy( self.__currentFrame * self.__pixmapHeight, 0, self.__pixmapHeight, @@ -177,4 +177,4 @@ @type QPixmap """ self.stop() - super(E5AnimatedLabel, self).setPixmap(pixmap) + super().setPixmap(pixmap)
--- a/eric6/E5Gui/E5AnimatedWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5AnimatedWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5AnimatedWidget, self).__init__(parent) + super().__init__(parent) self.__direction = direction self.__stepHeight = 0.0 @@ -118,4 +118,4 @@ if evt.size().width() != self.__widget.width(): self.__widget.resize(evt.size().width(), self.__widget.height()) - super(E5AnimatedWidget, self).resizeEvent(evt) + super().resizeEvent(evt)
--- a/eric6/E5Gui/E5Application.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5Application.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param argv command line arguments @type list """ - super(E5Application, self).__init__(argv) + super().__init__(argv) QCoreApplication.setAttribute( Qt.ApplicationAttribute.AA_DontCreateNativeWidgetSiblings, True)
--- a/eric6/E5Gui/E5ClickableLabel.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ClickableLabel.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5ClickableLabel, self).__init__(parent) + super().__init__(parent) self.setCursor(Qt.CursorShape.PointingHandCursor) @@ -53,4 +53,4 @@ ): self.middleClicked.emit(evt.globalPos()) else: - super(E5ClickableLabel, self).mouseReleaseEvent(evt) + super().mouseReleaseEvent(evt)
--- a/eric6/E5Gui/E5ComboBox.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ComboBox.py Sat Apr 10 18:38:27 2021 +0200 @@ -21,7 +21,7 @@ @param parent reference to the parent widget (QWidget) @param inactiveText text to be shown on inactivity (string) """ - super(E5ComboBox, self).__init__(parent) + super().__init__(parent) self.setMinimumHeight(24) @@ -59,7 +59,7 @@ @param parent reference to the parent widget (QWidget) @param inactiveText text to be shown on inactivity (string) """ - super(E5ClearableComboBox, self).__init__(parent, inactiveText) + super().__init__(parent, inactiveText) from .E5LineEdit import E5ClearableLineEdit self.__lineedit = E5ClearableLineEdit(self, inactiveText)
--- a/eric6/E5Gui/E5ComboSelectionDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ComboSelectionDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """ - super(E5ComboSelectionDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) for entry in entries:
--- a/eric6/E5Gui/E5Completers.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5Completers.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param showHidden flag indicating to show hidden entries as well (boolean) """ - super(E5FileCompleter, self).__init__(parent) + super().__init__(parent) self.__model = QFileSystemModel(self) if showHidden: self.__model.setFilter(QDir.Filters( @@ -91,7 +91,7 @@ @param showHidden flag indicating to show hidden entries as well (boolean) """ - super(E5DirCompleter, self).__init__(parent) + super().__init__(parent) self.__model = QFileSystemModel(self) if showHidden: self.__model.setFilter(QDir.Filters( @@ -145,7 +145,7 @@ @param completionMode completion mode of the completer (QCompleter.CompletionMode) """ - super(E5StringListCompleter, self).__init__(parent) + super().__init__(parent) self.__model = QStringListModel( [] if strings is None else strings[:], parent)
--- a/eric6/E5Gui/E5ErrorMessage.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ErrorMessage.py Sat Apr 10 18:38:27 2021 +0200 @@ -71,7 +71,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5ErrorMessage, self).__init__(parent) + super().__init__(parent) def showMessage(self, message, msgType=""): """ @@ -84,9 +84,9 @@ """ if not filterMessage(message): if msgType: - super(E5ErrorMessage, self).showMessage(message, msgType) + super().showMessage(message, msgType) else: - super(E5ErrorMessage, self).showMessage(message) + super().showMessage(message) def editMessageFilters(self): """
--- a/eric6/E5Gui/E5ErrorMessageFilterDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ErrorMessageFilterDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5ErrorMessageFilterDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.filtersEditWidget.setList(messageFilters)
--- a/eric6/E5Gui/E5FileSaveConfirmDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5FileSaveConfirmDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -35,7 +35,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5FileSaveConfirmDialog, self).__init__(parent) + super().__init__(parent) self.setMinimumWidth(400)
--- a/eric6/E5Gui/E5GenericDiffHighlighter.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5GenericDiffHighlighter.py Sat Apr 10 18:38:27 2021 +0200 @@ -37,7 +37,7 @@ @param doc reference to the text document (QTextDocument) """ - super(E5GenericDiffHighlighter, self).__init__(doc) + super().__init__(doc) self.regenerateRules()
--- a/eric6/E5Gui/E5Led.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5Led.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param shape shape of the LED (E5LedCircular, E5LedRectangular) @param rectRatio ratio width to height, if shape is rectangular (float) """ - super(E5Led, self).__init__(parent) + super().__init__(parent) if color is None: color = QColor("green") @@ -296,7 +296,7 @@ @param shape shape of the LED (E5LedCircular, E5LedRectangular) @param rectRatio ratio width to height, if shape is rectangular (float) """ - super(E5ClickableLed, self).__init__(parent, color, shape, rectRatio) + super().__init__(parent, color, shape, rectRatio) self.setCursor(Qt.CursorShape.PointingHandCursor) @@ -320,4 +320,4 @@ ): self.middleClicked.emit(evt.globalPos()) else: - super(E5ClickableLed, self).mouseReleaseEvent(evt) + super().mouseReleaseEvent(evt)
--- a/eric6/E5Gui/E5LineEdit.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5LineEdit.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5LineEditSideWidget, self).__init__(parent) + super().__init__(parent) def event(self, evt): """ @@ -58,7 +58,7 @@ @param parent reference to the parent widget (QWidget) @param inactiveText text to be shown on inactivity (string) """ - super(E5LineEdit, self).__init__(parent) + super().__init__(parent) self.setMinimumHeight(22) @@ -266,7 +266,7 @@ if side not in [E5LineEdit.RightSide, E5LineEdit.LeftSide]: raise ValueError("Bad value for 'side' parameter.") - super(E5ClearableLineEdit, self).__init__(parent, inactiveText) + super().__init__(parent, inactiveText) from E5Gui.E5LineEditButton import E5LineEditButton self.__clearButton = E5LineEditButton(self)
--- a/eric6/E5Gui/E5LineEditButton.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5LineEditButton.py Sat Apr 10 18:38:27 2021 +0200 @@ -22,7 +22,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5LineEditButton, self).__init__(parent) + super().__init__(parent) self.__menu = None self.__image = None @@ -60,7 +60,7 @@ self.__image = None else: self.__image = icon.pixmap(16, 16).toImage() - super(E5LineEditButton, self).setIcon(icon) + super().setIcon(icon) def __clicked(self): """
--- a/eric6/E5Gui/E5ListSelectionDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ListSelectionDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -40,7 +40,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5ListSelectionDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) if title:
--- a/eric6/E5Gui/E5ListView.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ListView.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ self.removeSelected() evt.setAccepted(True) else: - super(E5ListView, self).keyPressEvent(evt) + super().keyPressEvent(evt) def removeSelected(self): """
--- a/eric6/E5Gui/E5MainWindow.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5MainWindow.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5MainWindow, self).__init__(parent) + super().__init__(parent) self.defaultStyleName = QApplication.style().objectName()
--- a/eric6/E5Gui/E5MapWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5MapWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -22,7 +22,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5MapWidget, self).__init__(parent) + super().__init__(parent) self.setAttribute(Qt.WidgetAttribute.WA_OpaquePaintEvent) self.__width = 14
--- a/eric6/E5Gui/E5MessageBox.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5MessageBox.py Sat Apr 10 18:38:27 2021 +0200 @@ -78,7 +78,7 @@ @param buttons set of standard buttons to generate (StandardButtons) @param parent parent widget of the message box (QWidget) """ - super(E5MessageBox, self).__init__(parent) + super().__init__(parent) self.setIcon(icon) if modal: if parent is not None:
--- a/eric6/E5Gui/E5ModelMenu.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ModelMenu.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5ModelMenu, self).__init__(parent) + super().__init__(parent) self.__maxRows = -1 self.__firstSeparator = -1 @@ -317,7 +317,7 @@ if evt.mimeData().hasFormat(mimeType): evt.acceptProposedAction() - super(E5ModelMenu, self).dragEnterEvent(evt) + super().dragEnterEvent(evt) def dropEvent(self, evt): """ @@ -333,7 +333,7 @@ else: idx = self.index(act) if not idx.isValid(): - super(E5ModelMenu, self).dropEvent(evt) + super().dropEvent(evt) return row = idx.row() @@ -348,7 +348,7 @@ row, 0, parentIndex) self.close() - super(E5ModelMenu, self).dropEvent(evt) + super().dropEvent(evt) def mousePressEvent(self, evt): """ @@ -358,7 +358,7 @@ """ if evt.button() == Qt.MouseButton.LeftButton: self.__dragStartPosition = evt.pos() - super(E5ModelMenu, self).mousePressEvent(evt) + super().mousePressEvent(evt) def mouseMoveEvent(self, evt): """ @@ -367,31 +367,31 @@ @param evt reference to the event (QMouseEvent) """ if self.__model is None: - super(E5ModelMenu, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return if not (evt.buttons() & Qt.MouseButton.LeftButton): - super(E5ModelMenu, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return if self.__dragStartPosition.isNull(): - super(E5ModelMenu, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return manhattanLength = (evt.pos() - self.__dragStartPosition).manhattanLength() if manhattanLength <= QApplication.startDragDistance(): - super(E5ModelMenu, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return act = self.actionAt(self.__dragStartPosition) if act is None: - super(E5ModelMenu, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return idx = self.index(act) if not idx.isValid(): - super(E5ModelMenu, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return drag = QDrag(self) @@ -422,7 +422,7 @@ if evt.button() == Qt.MouseButton.LeftButton: self.__dragStartPosition = QPoint() - super(E5ModelMenu, self).mouseReleaseEvent(evt) + super().mouseReleaseEvent(evt) def resetFlags(self): """
--- a/eric6/E5Gui/E5ModelToolBar.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ModelToolBar.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,9 +28,9 @@ @param parent reference to the parent widget (QWidget) """ if title is not None: - super(E5ModelToolBar, self).__init__(title, parent) + super().__init__(title, parent) else: - super(E5ModelToolBar, self).__init__(parent) + super().__init__(parent) self.__model = None @@ -193,7 +193,7 @@ if evt.mimeData().hasFormat(mimeType): evt.acceptProposedAction() - super(E5ModelToolBar, self).dragEnterEvent(evt) + super().dragEnterEvent(evt) def dropEvent(self, evt): """ @@ -222,7 +222,7 @@ self.__model.dropMimeData(evt.mimeData(), evt.dropAction(), row, 0, parentIndex) - super(E5ModelToolBar, self).dropEvent(evt) + super().dropEvent(evt) def mouseMoveEvent(self, evt): """ @@ -232,22 +232,22 @@ @exception RuntimeError raised to indicate an invalid model index """ if self.__model is None: - super(E5ModelToolBar, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return if not (evt.buttons() & Qt.MouseButton.LeftButton): - super(E5ModelToolBar, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return manhattanLength = (evt.pos() - self.__dragStartPosition).manhattanLength() if manhattanLength <= QApplication.startDragDistance(): - super(E5ModelToolBar, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return act = self.actionAt(self.__dragStartPosition) if act is None: - super(E5ModelToolBar, self).mouseMoveEvent(evt) + super().mouseMoveEvent(evt) return idx = self.index(act) @@ -272,7 +272,7 @@ @param evt reference to the hide event (QHideEvent) """ self.clear() - super(E5ModelToolBar, self).hideEvent(evt) + super().hideEvent(evt) def showEvent(self, evt): """ @@ -282,7 +282,7 @@ """ if len(self.actions()) == 0: self._build() - super(E5ModelToolBar, self).showEvent(evt) + super().showEvent(evt) def resetFlags(self): """
--- a/eric6/E5Gui/E5OverrideCursor.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5OverrideCursor.py Sat Apr 10 18:38:27 2021 +0200 @@ -119,7 +119,7 @@ @param cursorShape shape of the override cursor @type Qt.CursorShape """ - super(E5OverrideCursorProcess, self).__init__(parent) + super().__init__(parent) self.__cursorShape = cursorShape
--- a/eric6/E5Gui/E5PassivePopup.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5PassivePopup.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5PassivePopup, self).__init__(None) + super().__init__(None) self.__popupStyle = DEFAULT_POPUP_TYPE self.__msgView = None @@ -75,7 +75,7 @@ @param visible flag indicating the visibility status (boolean) """ if not visible: - super(E5PassivePopup, self).setVisible(visible) + super().setVisible(visible) return if self.size() != self.sizeHint(): @@ -85,7 +85,7 @@ self.__positionSelf() else: self.move(self.__fixedPosition) - super(E5PassivePopup, self).setVisible(True) + super().setVisible(True) delay = self.__hideDelay if delay < 0: @@ -101,7 +101,7 @@ """ if p is not None: self.__fixedPosition = p - super(E5PassivePopup, self).show() + super().show() def setTimeout(self, delay): """
--- a/eric6/E5Gui/E5PasswordMeter.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5PasswordMeter.py Sat Apr 10 18:38:27 2021 +0200 @@ -22,10 +22,10 @@ @param parent reference to the parent widget (QWidget) """ - super(E5PasswordMeter, self).__init__(parent) + super().__init__(parent) - super(E5PasswordMeter, self).setTextVisible(False) - super(E5PasswordMeter, self).setMaximum(100) + super().setTextVisible(False) + super().setMaximum(100) self.__increment = 100 // (PasswordChecker.Complexity_VeryStrong + 1) self.__indicatorColors = [ @@ -58,7 +58,7 @@ strength = PasswordChecker().checkPassword(password) self.setStyleSheet(self.__styleSheetTemplate.format( self.__indicatorColors[strength])) - super(E5PasswordMeter, self).setValue( + super().setValue( (strength + 1) * self.__increment) def setValue(self, value):
--- a/eric6/E5Gui/E5PathPicker.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5PathPicker.py Sat Apr 10 18:38:27 2021 +0200 @@ -69,7 +69,7 @@ @param useLineEdit flag indicating the use of a line edit @type bool """ - super(E5PathPickerBase, self).__init__(parent) + super().__init__(parent) self.__lineEditKind = useLineEdit @@ -684,7 +684,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5PathPicker, self).__init__(parent, useLineEdit=True) + super().__init__(parent, useLineEdit=True) class E5ComboPathPicker(E5PathPickerBase): @@ -699,7 +699,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5ComboPathPicker, self).__init__(parent, useLineEdit=False) + super().__init__(parent, useLineEdit=False) def getPathItems(self): """
--- a/eric6/E5Gui/E5PathPickerDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5PathPickerDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5PathPickerDialog, self).__init__(parent) + super().__init__(parent) self.setMinimumWidth(400)
--- a/eric6/E5Gui/E5PlainTextDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5PlainTextDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5PlainTextDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.copyButton = self.buttonBox.addButton(
--- a/eric6/E5Gui/E5ProcessDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ProcessDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -45,7 +45,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5ProcessDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button( @@ -311,4 +311,4 @@ evt.accept() return - super(E5ProcessDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt)
--- a/eric6/E5Gui/E5ProgressDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ProgressDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ """ if flags is None: flags = Qt.WindowFlags() - super(E5ProgressDialog, self).__init__( + super().__init__( labelText, cancelButtonText, minimum, maximum, parent, flags) self.__progressBar = QProgressBar(self)
--- a/eric6/E5Gui/E5SideBar.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5SideBar.py Sat Apr 10 18:38:27 2021 +0200 @@ -41,7 +41,7 @@ (integer) @param parent parent widget (QWidget) """ - super(E5SideBar, self).__init__(parent) + super().__init__(parent) self.__tabBar = QTabBar() self.__tabBar.setDrawBase(True)
--- a/eric6/E5Gui/E5SimpleHelpDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5SimpleHelpDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5SimpleHelpDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/E5Gui/E5SqueezeLabels.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5SqueezeLabels.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param parent reference to the parent Widget (QWidget) """ - super(E5SqueezeLabel, self).__init__(parent) + super().__init__(parent) self.__text = '' self.__elided = '' @@ -43,10 +43,10 @@ if pixelLength > self.contentsRect().width(): self.__elided = fm.elidedText( self.text(), Qt.TextElideMode.ElideMiddle, self.width()) - super(E5SqueezeLabel, self).setText(self.__elided) + super().setText(self.__elided) else: - super(E5SqueezeLabel, self).setText(self.__text) - super(E5SqueezeLabel, self).paintEvent(event) + super().setText(self.__text) + super().paintEvent(event) def setText(self, txt): """ @@ -55,7 +55,7 @@ @param txt the text to be shown (string) """ self.__text = txt - super(E5SqueezeLabel, self).setText(self.__text) + super().setText(self.__text) class E5SqueezeLabelPath(QLabel): @@ -68,7 +68,7 @@ @param parent reference to the parent Widget (QWidget) """ - super(E5SqueezeLabelPath, self).__init__(parent) + super().__init__(parent) self.__path = '' self.__surrounding = "{0}" @@ -81,7 +81,7 @@ (string) """ self.__surrounding = surrounding - super(E5SqueezeLabelPath, self).setText( + super().setText( self.__surrounding.format(self.__path)) def setPath(self, path): @@ -91,7 +91,7 @@ @param path path to be shown (string) """ self.__path = path - super(E5SqueezeLabelPath, self).setText( + super().setText( self.__surrounding.format(self.__path)) def setTextPath(self, surrounding, path): @@ -104,7 +104,7 @@ """ self.__surrounding = surrounding self.__path = path - super(E5SqueezeLabelPath, self).setText( + super().setText( self.__surrounding.format(self.__path)) def paintEvent(self, event): @@ -114,15 +114,15 @@ @param event reference to the paint event (QPaintEvent) """ if self.length(self.__path) > self.contentsRect().width(): - super(E5SqueezeLabelPath, self).setText( + super().setText( self.__surrounding.format(compactPath(self.__path, self.contentsRect().width(), self.length)) ) else: - super(E5SqueezeLabelPath, self).setText( + super().setText( self.__surrounding.format(self.__path)) - super(E5SqueezeLabelPath, self).paintEvent(event) + super().paintEvent(event) def length(self, txt): """
--- a/eric6/E5Gui/E5StringListEditWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5StringListEditWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5StringListEditWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__model = QStringListModel(self)
--- a/eric6/E5Gui/E5TabWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5TabWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5WheelTabBar, self).__init__(parent) + super().__init__(parent) self._tabWidget = parent def wheelEvent(self, event): @@ -147,7 +147,7 @@ @param parent reference to the parent widget (QWidget) @param dnd flag indicating the support for Drag & Drop (boolean) """ - super(E5TabWidget, self).__init__(parent) + super().__init__(parent) if dnd: if not hasattr(self, 'setMovable'):
--- a/eric6/E5Gui/E5TableView.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5TableView.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ self.removeSelected() evt.setAccepted(True) else: - super(E5TableView, self).keyPressEvent(evt) + super().keyPressEvent(evt) def removeSelected(self): """
--- a/eric6/E5Gui/E5TextEditSearchWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5TextEditSearchWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ line. @type bool """ - super(E5TextEditSearchWidget, self).__init__(parent) + super().__init__(parent) self.__setupUi(widthForHeight) self.__textedit = None
--- a/eric6/E5Gui/E5TextInputDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5TextInputDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5TextInputDialog, self).__init__(parent) + super().__init__(parent) self.setMaximumWidth(600)
--- a/eric6/E5Gui/E5TextSpinBox.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5TextSpinBox.py Sat Apr 10 18:38:27 2021 +0200 @@ -20,7 +20,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5TextSpinBox, self).__init__(parent) + super().__init__(parent) self.__items = []
--- a/eric6/E5Gui/E5ToolBarDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ToolBarDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -56,7 +56,7 @@ (E5ToolBarManager) @param parent reference to the parent widget (QWidget) """ - super(E5ToolBarDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__manager = toolBarManager
--- a/eric6/E5Gui/E5ToolBarManager.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ToolBarManager.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param ui reference to the user interface object (UI.UserInterface) @param parent reference to the parent object (QObject) """ - super(E5ToolBarManager, self).__init__(parent) + super().__init__(parent) self.__mainWindow = None self.__ui = ui
--- a/eric6/E5Gui/E5ToolBox.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ToolBox.py Sat Apr 10 18:38:27 2021 +0200 @@ -23,7 +23,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5VerticalToolBox, self).__init__(parent) + super().__init__(parent) class E5HorizontalToolBox(E5TabWidget):
--- a/eric6/E5Gui/E5ToolButton.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ToolButton.py Sat Apr 10 18:38:27 2021 +0200 @@ -43,7 +43,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5ToolButton, self).__init__(parent) + super().__init__(parent) self.setMinimumWidth(16) @@ -214,7 +214,7 @@ self.setDown(True) self.__showMenu() else: - super(E5ToolButton, self).mousePressEvent(evt) + super().mousePressEvent(evt) def mouseReleaseEvent(self, evt): """ @@ -239,7 +239,7 @@ self.controlClicked.emit() self.setDown(False) else: - super(E5ToolButton, self).mouseReleaseEvent(evt) + super().mouseReleaseEvent(evt) def mouseDoubleClickEvent(self, evt): """ @@ -248,7 +248,7 @@ @param evt reference to the mouse event @type QMouseEvent """ - super(E5ToolButton, self).mouseDoubleClickEvent(evt) + super().mouseDoubleClickEvent(evt) self.__pressTimer.stop() @@ -266,7 +266,7 @@ if self.__menu is not None: return - super(E5ToolButton, self).contextMenuEvent(evt) + super().contextMenuEvent(evt) ################################################################## ## Methods to handle the tool button badge
--- a/eric6/E5Gui/E5TreeSortFilterProxyModel.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5TreeSortFilterProxyModel.py Sat Apr 10 18:38:27 2021 +0200 @@ -23,7 +23,7 @@ @param parent reference to the parent object (QObject) """ - super(E5TreeSortFilterProxyModel, self).__init__(parent) + super().__init__(parent) self.setFilterCaseSensitivity(Qt.CaseSensitivity.CaseInsensitive)
--- a/eric6/E5Gui/E5TreeView.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5TreeView.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ self.removeSelected() evt.setAccepted(True) else: - super(E5TreeView, self).keyPressEvent(evt) + super().keyPressEvent(evt) def removeSelected(self): """
--- a/eric6/E5Gui/E5TreeWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5TreeWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -32,7 +32,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5TreeWidget, self).__init__(parent) + super().__init__(parent) self.__refreshAllItemsNeeded = True self.__allTreeItems = [] @@ -135,7 +135,7 @@ @param item item to be added as a top level item (QTreeWidgetItem) """ self.__allTreeItems.append(item) - super(E5TreeWidget, self).addTopLevelItem(item) + super().addTopLevelItem(item) def addTopLevelItems(self, items): """ @@ -145,7 +145,7 @@ (list of QTreeWidgetItem) """ self.__allTreeItems.extend(items) - super(E5TreeWidget, self).addTopLevelItems(items) + super().addTopLevelItems(items) def insertTopLevelItem(self, index, item): """ @@ -155,7 +155,7 @@ @param item item to be inserted as a top level item (QTreeWidgetItem) """ self.__allTreeItems.append(item) - super(E5TreeWidget, self).insertTopLevelItem(index, item) + super().insertTopLevelItem(index, item) def insertTopLevelItems(self, index, items): """ @@ -166,7 +166,7 @@ (list of QTreeWidgetItem) """ self.__allTreeItems.extend(items) - super(E5TreeWidget, self).insertTopLevelItems(index, items) + super().insertTopLevelItems(index, items) def deleteItem(self, item): """ @@ -236,7 +236,7 @@ Public slot to clear the tree. """ self.__allTreeItems = [] - super(E5TreeWidget, self).clear() + super().clear() def __scheduleRefresh(self): """ @@ -260,7 +260,7 @@ self.itemMiddleButtonClicked.emit(self.itemAt(evt.pos())) return else: - super(E5TreeWidget, self).mousePressEvent(evt) + super().mousePressEvent(evt) def __iterateAllItems(self, parent): """
--- a/eric6/E5Gui/E5ZoomWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ZoomWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param resetPix pixmap for the zoom reset button (QPixmap) @param parent reference to the parent widget (QWidget) """ - super(E5ZoomWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.zoomOutLabel.setPixmap(outPix.scaled(16, 16))
--- a/eric6/E5Network/E5Ftp.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5Ftp.py Sat Apr 10 18:38:27 2021 +0200 @@ -79,7 +79,7 @@ @param proxyAccount accounting info for the proxy (string) @param timeout timeout in seconds for blocking operations (integer) """ - super(E5Ftp, self).__init__() + super().__init__() self.__timeout = timeout @@ -160,10 +160,10 @@ raise E5FtpProxyError( "990 Proxy usage requested, but no proxy host given.") - return super(E5Ftp, self).connect( + return super().connect( self.__proxyHost, self.__proxyPort, self.__timeout) else: - return super(E5Ftp, self).connect( + return super().connect( self.__host, self.__port, self.__timeout) def login(self, user="", password="", acct=""): # secok
--- a/eric6/E5Network/E5GoogleMail.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5GoogleMail.py Sat Apr 10 18:38:27 2021 +0200 @@ -45,7 +45,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5GoogleMailAuthBrowser, self).__init__(parent) + super().__init__(parent) self.__layout = QVBoxLayout(self) @@ -113,7 +113,7 @@ @param parent reference to the parent object @type QObject """ - super(E5GoogleMail, self).__init__(parent=parent) + super().__init__(parent=parent) self.__messages = []
--- a/eric6/E5Network/E5NetworkHeaderDetailsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5NetworkHeaderDetailsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -23,7 +23,7 @@ @param parent reference to the parent object (QWidget) """ - super(E5NetworkHeaderDetailsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/E5Network/E5NetworkProxyFactory.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5NetworkProxyFactory.py Sat Apr 10 18:38:27 2021 +0200 @@ -133,7 +133,7 @@ """ Constructor """ - super(E5NetworkProxyFactory, self).__init__() + super().__init__() self.__hostnameMatchers = [] self.__exceptions = ""
--- a/eric6/E5Network/E5RFC6266.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5RFC6266.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ """ if key in self: raise DuplicateParamError(key) - super(UniqueNamespace, self).__setitem__(key, value) + super().__setitem__(key, value) # RFC 2616 separator_chars = "()<>@,;:\\\"/[]?={} \t" # __IGNORE_WARNING_M613__ @@ -83,7 +83,7 @@ grammar = re.compile(r'"({0}|{1})+"'.format(quoted_pair_re, qdtext_re)) def __str__(self): - s = super(QuotedString, self).__str__() + s = super().__str__() s = s[1:-1] # remove quotes s = re.sub(r'\\(.)', r'\1', s) # drop backslashes return s @@ -137,7 +137,7 @@ regex = re.compile(token_re + r'\*') def __str__(self): - return super(ExtToken, self).__str__().lower() + return super().__str__().lower() class NoExtToken(peg.Symbol): """ @@ -146,7 +146,7 @@ regex = re.compile(token_re + r'(?<!\*)') def __str__(self): - return super(NoExtToken, self).__str__().lower() + return super().__str__().lower() class DispositionParm(str): """
--- a/eric6/E5Network/E5SslCertificateSelectionDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5SslCertificateSelectionDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -38,7 +38,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5SslCertificateSelectionDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.viewButton.setIcon(
--- a/eric6/E5Network/E5SslCertificatesDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5SslCertificatesDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -40,7 +40,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5SslCertificatesDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.serversViewButton.setIcon(
--- a/eric6/E5Network/E5SslCertificatesInfoDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5SslCertificatesInfoDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -23,7 +23,7 @@ @param certificateChain SSL certificate chain (list of QSslCertificate) @param parent reference to the parent widget (QWidget) """ - super(E5SslCertificatesInfoDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.sslWidget.showCertificateChain(certificateChain)
--- a/eric6/E5Network/E5SslCertificatesInfoWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5SslCertificatesInfoWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @param parent reference to the parent widget (QWidget) """ - super(E5SslCertificatesInfoWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__chain = []
--- a/eric6/E5Network/E5SslErrorHandler.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5SslErrorHandler.py Sat Apr 10 18:38:27 2021 +0200 @@ -38,7 +38,7 @@ @param parent reference to the parent object (QObject) """ - super(E5SslErrorHandler, self).__init__(parent) + super().__init__(parent) caList = self.__getSystemCaCertificates() if Preferences.Prefs.settings.contains("Help/CaCertificatesDict"):
--- a/eric6/E5Network/E5SslInfoWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5SslInfoWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -27,7 +27,7 @@ @param configuration SSL configuration (QSslConfiguration) @param parent reference to the parent widget (QWidget) """ - super(E5SslInfoWidget, self).__init__(parent) + super().__init__(parent) self.__url = QUrl(url) self.__configuration = QSslConfiguration(configuration)
--- a/eric6/E5Network/E5TldExtractor.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5TldExtractor.py Sat Apr 10 18:38:27 2021 +0200 @@ -52,7 +52,7 @@ @param parent reference to the parent object @type QObject """ - super(E5TldExtractor, self).__init__(parent) + super().__init__(parent) self.__withPrivate = withPrivate self.__dataFileName = ""
--- a/eric6/E5Network/E5XmlRpcClient.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Network/E5XmlRpcClient.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ @param url xmlrpc handler URL (string or QUrl) @param parent parent object (QObject) """ - super(E5XmlRpcClient, self).__init__(parent) + super().__init__(parent) # attributes for the network objects self.__networkManager = QNetworkAccessManager(self)
--- a/eric6/E5XML/XMLStreamReaderBase.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5XML/XMLStreamReaderBase.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param device reference to the I/O device to read from (QIODevice) """ - super(XMLStreamReaderBase, self).__init__(device) + super().__init__(device) def toBool(self, value): """
--- a/eric6/E5XML/XMLStreamWriterBase.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5XML/XMLStreamWriterBase.py Sat Apr 10 18:38:27 2021 +0200 @@ -23,7 +23,7 @@ @param device reference to the I/O device to write to (QIODevice) """ - super(XMLStreamWriterBase, self).__init__(device) + super().__init__(device) self.basics = { type(None): self._write_none,
--- a/eric6/Graphics/ApplicationDiagramBuilder.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/ApplicationDiagramBuilder.py Sat Apr 10 18:38:27 2021 +0200 @@ -35,7 +35,7 @@ @param noModules flag indicating, that no module names should be shown (boolean) """ - super(ApplicationDiagramBuilder, self).__init__(dialog, view, project) + super().__init__(dialog, view, project) self.setObjectName("ApplicationDiagram") self.noModules = noModules
--- a/eric6/Graphics/ClassItem.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/ClassItem.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @param attributes list of attribute names of the class (list of strings) """ - super(ClassModel, self).__init__(name) + super().__init__(name) self.methods = [] if methods is None else methods[:] self.attributes = [] if attributes is None else attributes[:]
--- a/eric6/Graphics/ImportsDiagramBuilder.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/ImportsDiagramBuilder.py Sat Apr 10 18:38:27 2021 +0200 @@ -40,7 +40,7 @@ @param showExternalImports flag indicating to show exports from outside the package (boolean) """ - super(ImportsDiagramBuilder, self).__init__(dialog, view, project) + super().__init__(dialog, view, project) self.setObjectName("ImportsDiagram") self.showExternalImports = showExternalImports
--- a/eric6/Graphics/ModuleItem.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/ModuleItem.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param name the module name (string) @param classlist list of class names (list of strings) """ - super(ModuleModel, self).__init__(name) + super().__init__(name) self.classlist = [] if classlist is None else classlist[:]
--- a/eric6/Graphics/PackageDiagramBuilder.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/PackageDiagramBuilder.py Sat Apr 10 18:38:27 2021 +0200 @@ -36,7 +36,7 @@ @param noAttrs flag indicating, that no attributes should be shown (boolean) """ - super(PackageDiagramBuilder, self).__init__(dialog, view, project) + super().__init__(dialog, view, project) self.setObjectName("PackageDiagram") self.package = os.path.abspath(package)
--- a/eric6/Graphics/PackageItem.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/PackageItem.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ @param name package name (string) @param moduleslist list of module names (list of strings) """ - super(PackageModel, self).__init__(name) + super().__init__(name) self.moduleslist = [] if moduleslist is None else moduleslist[:]
--- a/eric6/Graphics/PixmapDiagram.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/PixmapDiagram.py Sat Apr 10 18:38:27 2021 +0200 @@ -44,7 +44,7 @@ @param parent parent widget of the view (QWidget) @param name name of the view widget (string) """ - super(PixmapDiagram, self).__init__(parent) + super().__init__(parent) if name: self.setObjectName(name) else: @@ -194,7 +194,7 @@ evt.accept() return - super(PixmapDiagram, self).wheelEvent(evt) + super().wheelEvent(evt) def event(self, evt): """ @@ -207,7 +207,7 @@ self.gestureEvent(evt) return True - return super(PixmapDiagram, self).event(evt) + return super().event(evt) def gestureEvent(self, evt): """
--- a/eric6/Graphics/SvgDiagram.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/SvgDiagram.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param parent parent widget of the view (QWidget) @param name name of the view widget (string) """ - super(SvgDiagram, self).__init__(parent) + super().__init__(parent) if name: self.setObjectName(name) else: @@ -164,7 +164,7 @@ evt.accept() return - super(SvgDiagram, self).wheelEvent(evt) + super().wheelEvent(evt) def event(self, evt): """ @@ -177,7 +177,7 @@ self.gestureEvent(evt) return True - return super(SvgDiagram, self).event(evt) + return super().event(evt) def gestureEvent(self, evt): """
--- a/eric6/Graphics/UMLClassDiagramBuilder.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/UMLClassDiagramBuilder.py Sat Apr 10 18:38:27 2021 +0200 @@ -32,7 +32,7 @@ @param noAttrs flag indicating, that no attributes should be shown (boolean) """ - super(UMLClassDiagramBuilder, self).__init__(dialog, view, project) + super().__init__(dialog, view, project) self.setObjectName("UMLClassDiagramBuilder") self.file = file
--- a/eric6/Graphics/UMLDiagramBuilder.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/UMLDiagramBuilder.py Sat Apr 10 18:38:27 2021 +0200 @@ -22,7 +22,7 @@ @param view reference to the view object (UMLGraphicsView) @param project reference to the project object (Project) """ - super(UMLDiagramBuilder, self).__init__(dialog) + super().__init__(dialog) self.umlView = view self.scene = self.umlView.scene()
--- a/eric6/Graphics/UMLDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/UMLDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -43,7 +43,7 @@ builder (boolean) @keyparam kwargs diagram specific data """ - super(UMLDialog, self).__init__(parent) + super().__init__(parent) self.setObjectName("UMLDialog") self.__diagramType = diagramType @@ -142,7 +142,7 @@ """ if not fromFile and self.builder: self.builder.buildDiagram() - super(UMLDialog, self).show() + super().show() def __relayout(self): """
--- a/eric6/Graphics/UMLGraphicsView.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/UMLGraphicsView.py Sat Apr 10 18:38:27 2021 +0200 @@ -331,7 +331,7 @@ @param limit flag indicating to limit the scene to the initial size (boolean) """ - super(UMLGraphicsView, self).autoAdjustSceneSize(limit=limit) + super().autoAdjustSceneSize(limit=limit) self.__checkSizeActions() def saveImage(self): @@ -362,7 +362,7 @@ if not res: return - success = super(UMLGraphicsView, self).saveImage( + success = super().saveImage( fname, QFileInfo(fname).suffix().upper()) if not success: E5MessageBox.critical( @@ -434,7 +434,7 @@ printDialog = QPrintDialog(printer, self) if printDialog.exec(): - super(UMLGraphicsView, self).printDiagram( + super().printDiagram( printer, self.diagramName) def printPreviewDiagram(self): @@ -474,7 +474,7 @@ @param printer reference to the printer object (QPrinter) """ - super(UMLGraphicsView, self).printDiagram(printer, self.diagramName) + super().printDiagram(printer, self.diagramName) def setDiagramName(self, name): """ @@ -611,7 +611,7 @@ evt.accept() return - super(UMLGraphicsView, self).keyPressEvent(evt) + super().keyPressEvent(evt) def wheelEvent(self, evt): """ @@ -628,7 +628,7 @@ evt.accept() return - super(UMLGraphicsView, self).wheelEvent(evt) + super().wheelEvent(evt) def event(self, evt): """ @@ -641,7 +641,7 @@ self.gestureEvent(evt) return True - return super(UMLGraphicsView, self).event(evt) + return super().event(evt) def gestureEvent(self, evt): """
--- a/eric6/Graphics/UMLItem.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/UMLItem.py Sat Apr 10 18:38:27 2021 +0200 @@ -59,7 +59,7 @@ @param parent reference to the parent object @type QGraphicsItem """ - super(UMLItem, self).__init__(parent) + super().__init__(parent) self.model = model if colors is None: @@ -156,7 +156,7 @@ @param dx relative movement in x-direction (float) @param dy relative movement in y-direction (float) """ - super(UMLItem, self).moveBy(dx, dy) + super().moveBy(dx, dy) self.adjustAssociations() def setPos(self, x, y): @@ -166,7 +166,7 @@ @param x absolute x-position (float) @param y absolute y-position (float) """ - super(UMLItem, self).setPos(x, y) + super().setPos(x, y) self.adjustAssociations() def itemChange(self, change, value):
--- a/eric6/Graphics/UMLSceneSizeDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Graphics/UMLSceneSizeDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -27,7 +27,7 @@ @param parent parent widget of this dialog (QWidget) @param name name of this widget (string) """ - super(UMLSceneSizeDialog, self).__init__(parent) + super().__init__(parent) if name: self.setObjectName(name) self.setupUi(self)
--- a/eric6/HexEdit/HexEditGotoWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/HexEdit/HexEditGotoWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param parent reference to the parent widget @type QWidget """ - super(HexEditGotoWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__editor = editor @@ -120,7 +120,7 @@ """ self.offsetEdit.selectAll() self.offsetEdit.setFocus() - super(HexEditGotoWidget, self).show() + super().show() def reset(self): """
--- a/eric6/HexEdit/HexEditMainWindow.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/HexEdit/HexEditMainWindow.py Sat Apr 10 18:38:27 2021 +0200 @@ -57,7 +57,7 @@ eric (boolean) @param project reference to the project object (Project) """ - super(HexEditMainWindow, self).__init__(parent) + super().__init__(parent) self.setObjectName("eric6_hex_editor") self.__srHistory = {
--- a/eric6/HexEdit/HexEditSearchReplaceWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/HexEdit/HexEditSearchReplaceWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ @param parent reference to the parent widget @type QWidget """ - super(HexEditSearchReplaceWidget, self).__init__(parent) + super().__init__(parent) self.__replace = replace self.__editor = editor @@ -461,7 +461,7 @@ self.__showReplace(text) else: self.__showFind(text) - super(HexEditSearchReplaceWidget, self).show() + super().show() self.activateWindow() @pyqtSlot()
--- a/eric6/HexEdit/HexEditUndoStack.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/HexEdit/HexEditUndoStack.py Sat Apr 10 18:38:27 2021 +0200 @@ -40,7 +40,7 @@ @param parent reference to the parent command @type QUndoCommand """ - super(HexEditUndoCommand, self).__init__(parent) + super().__init__(parent) self.__chunks = chunks self._pos = pos @@ -120,7 +120,7 @@ @param parent reference to the parent object @type QObject """ - super(HexEditUndoStack, self).__init__(parent) + super().__init__(parent) self.__chunks = chunks self.__parent = parent
--- a/eric6/HexEdit/HexEditWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/HexEdit/HexEditWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -60,7 +60,7 @@ @param parent refernce to the parent widget @type QWidget """ - super(HexEditWidget, self).__init__(parent) + super().__init__(parent) # Properties self.__addressArea = True @@ -603,7 +603,7 @@ @return font used to show the data @rtype QFont """ - return super(HexEditWidget, self).font() + return super().font() def setFont(self, font): """ @@ -612,7 +612,7 @@ @param font font used to show the data @type QFont """ - super(HexEditWidget, self).setFont(font) + super().setFont(font) try: self.__pxCharWidth = self.fontMetrics().horizontalAdvance("2") except AttributeError:
--- a/eric6/IconEditor/IconEditorGrid.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/IconEditor/IconEditorGrid.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ (QImage) @param parent reference to the parent command (QUndoCommand) """ - super(IconEditCommand, self).__init__(text, parent) + super().__init__(text, parent) self.__grid = grid self.__imageBefore = QImage(oldImage) @@ -121,7 +121,7 @@ @param parent reference to the parent widget (QWidget) """ - super(IconEditorGrid, self).__init__(parent) + super().__init__(parent) self.setAttribute(Qt.WidgetAttribute.WA_StaticContents) self.setSizePolicy(QSizePolicy.Policy.Minimum,
--- a/eric6/IconEditor/IconEditorPalette.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/IconEditor/IconEditorPalette.py Sat Apr 10 18:38:27 2021 +0200 @@ -32,7 +32,7 @@ @param parent reference to the parent widget (QWidget) """ - super(IconEditorPalette, self).__init__(parent) + super().__init__(parent) if self.layoutDirection == Qt.Orientation.Horizontal: direction = QBoxLayout.Direction.LeftToRight
--- a/eric6/IconEditor/IconEditorWindow.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/IconEditor/IconEditorWindow.py Sat Apr 10 18:38:27 2021 +0200 @@ -53,7 +53,7 @@ keyboard shortcuts (boolean) @param project reference to the project object (Project) """ - super(IconEditorWindow, self).__init__(parent) + super().__init__(parent) self.setObjectName("eric6_icon_editor") self.fromEric = fromEric @@ -1371,7 +1371,7 @@ evt.accept() return - super(IconEditorWindow, self).wheelEvent(evt) + super().wheelEvent(evt) def event(self, evt): """ @@ -1384,7 +1384,7 @@ self.gestureEvent(evt) return True - return super(IconEditorWindow, self).event(evt) + return super().event(evt) def gestureEvent(self, evt): """
--- a/eric6/IconEditor/IconSizeDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/IconEditor/IconSizeDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param height height to be set (integer) @param parent reference to the parent widget (QWidget) """ - super(IconSizeDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.widthSpin.setValue(width)
--- a/eric6/MicroPython/AddEditDevicesDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/AddEditDevicesDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -43,7 +43,7 @@ @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """ - super(AddEditDevicesDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) # populate the device type combo box
--- a/eric6/MicroPython/CircuitPythonDevices.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/CircuitPythonDevices.py Sat Apr 10 18:38:27 2021 +0200 @@ -38,7 +38,7 @@ @param parent reference to the parent object @type QObject """ - super(CircuitPythonDevice, self).__init__( + super().__init__( microPythonWidget, deviceType, parent) self.__workspace = self.__findWorkspace() @@ -51,7 +51,7 @@ """ Public method to enable the supported action buttons. """ - super(CircuitPythonDevice, self).setButtons() + super().setButtons() self.microPython.setActionButtons( run=True, repl=True, files=True, chart=HAS_QTCHART) @@ -197,7 +197,7 @@ ) ) - return super(CircuitPythonDevice, self).getWorkspace() + return super().getWorkspace() def addDeviceMenuEntries(self, menu): """
--- a/eric6/MicroPython/ConnectionSelectionDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/ConnectionSelectionDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -37,7 +37,7 @@ @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """ - super(ConnectionSelectionDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) for index, (vid, pid, description, portName) in enumerate(
--- a/eric6/MicroPython/EspBackupRestoreFirmwareDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/EspBackupRestoreFirmwareDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -61,7 +61,7 @@ @param parent reference to the parent widget @type QWidget """ - super(EspBackupRestoreFirmwareDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__isBackupMode = backupMode
--- a/eric6/MicroPython/EspDevices.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/EspDevices.py Sat Apr 10 18:38:27 2021 +0200 @@ -38,13 +38,13 @@ @param parent reference to the parent object @type QObject """ - super(EspDevice, self).__init__(microPythonWidget, deviceType, parent) + super().__init__(microPythonWidget, deviceType, parent) def setButtons(self): """ Public method to enable the supported action buttons. """ - super(EspDevice, self).setButtons() + super().setButtons() self.microPython.setActionButtons( run=True, repl=True, files=True, chart=HAS_QTCHART)
--- a/eric6/MicroPython/EspFirmwareSelectionDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/EspFirmwareSelectionDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -41,7 +41,7 @@ @param parent reference to the parent widget @type QWidget """ - super(EspFirmwareSelectionDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__addon = addon
--- a/eric6/MicroPython/GenericMicroPythonDevices.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/GenericMicroPythonDevices.py Sat Apr 10 18:38:27 2021 +0200 @@ -38,7 +38,7 @@ @param parent reference to the parent object @type QObject """ - super(GenericMicroPythonDevice, self).__init__( + super().__init__( microPythonWidget, deviceType, parent) self.__directAccess = False @@ -62,7 +62,7 @@ """ Public method to enable the supported action buttons. """ - super(GenericMicroPythonDevice, self).setButtons() + super().setButtons() self.microPython.setActionButtons( run=True, repl=True, files=True, chart=HAS_QTCHART) @@ -169,7 +169,7 @@ self.__workspace = self.__findWorkspace(silent=silent) return self.__workspace else: - return super(GenericMicroPythonDevice, self).getWorkspace() + return super().getWorkspace() def __findWorkspace(self, silent=False): """ @@ -204,4 +204,4 @@ ).format(self.__deviceVolumeName) ) - return super(GenericMicroPythonDevice, self).getWorkspace() + return super().getWorkspace()
--- a/eric6/MicroPython/IgnoredDevicesDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/IgnoredDevicesDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param parent reference to the parent widget @type QWidget """ - super(IgnoredDevicesDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.devicesEditWidget.setList([
--- a/eric6/MicroPython/MicroPythonCommandsInterface.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/MicroPythonCommandsInterface.py Sat Apr 10 18:38:27 2021 +0200 @@ -63,7 +63,7 @@ @param parent reference to the parent object @type QObject """ - super(MicroPythonCommandsInterface, self).__init__(parent) + super().__init__(parent) self.__repl = parent
--- a/eric6/MicroPython/MicroPythonDevices.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/MicroPythonDevices.py Sat Apr 10 18:38:27 2021 +0200 @@ -337,7 +337,7 @@ @param parent reference to the parent object @type QObject """ - super(MicroPythonDevice, self).__init__(parent) + super().__init__(parent) self._deviceType = deviceType self.microPython = microPythonWidget
--- a/eric6/MicroPython/MicroPythonFileManager.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/MicroPythonFileManager.py Sat Apr 10 18:38:27 2021 +0200 @@ -70,7 +70,7 @@ @param parent reference to the parent object @type QObject """ - super(MicroPythonFileManager, self).__init__(parent) + super().__init__(parent) self.__commandsInterface = commandsInterface
--- a/eric6/MicroPython/MicroPythonFileManagerWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/MicroPythonFileManagerWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -52,7 +52,7 @@ @param parent reference to the parent widget @type QWidget """ - super(MicroPythonFileManagerWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__repl = parent
--- a/eric6/MicroPython/MicroPythonGraphWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/MicroPythonGraphWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -43,7 +43,7 @@ @param parent reference to the parent widget @type QWidget """ - super(MicroPythonGraphWidget, self).__init__(parent) + super().__init__(parent) self.__layout = QHBoxLayout() self.__layout.setContentsMargins(2, 2, 2, 2)
--- a/eric6/MicroPython/MicroPythonProgressInfoDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/MicroPythonProgressInfoDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param parent reference to the parent widget @type QWidget """ - super(MicroPythonProgressInfoDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) @pyqtSlot(str)
--- a/eric6/MicroPython/MicroPythonSerialPort.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/MicroPythonSerialPort.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ @param parent reference to the parent object @type QObject """ - super(MicroPythonSerialPort, self).__init__(parent) + super().__init__(parent) self.__connected = False self.__timeout = timeout # 10s default timeout
--- a/eric6/MicroPython/MicroPythonWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/MicroPythonWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -206,7 +206,7 @@ @param parent reference to the parent widget @type QWidget """ - super(MicroPythonWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__ui = parent @@ -739,7 +739,7 @@ return True else: # standard event processing - return super(MicroPythonWidget, self).eventFilter(obj, evt) + return super().eventFilter(obj, evt) def __replEditMouseReleaseEvent(self, evt): """
--- a/eric6/MicroPython/MicrobitDevices.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/MicrobitDevices.py Sat Apr 10 18:38:27 2021 +0200 @@ -39,14 +39,14 @@ @param parent reference to the parent object @type QObject """ - super(MicrobitDevice, self).__init__( + super().__init__( microPythonWidget, deviceType, parent) def setButtons(self): """ Public method to enable the supported action buttons. """ - super(MicrobitDevice, self).setButtons() + super().setButtons() self.microPython.setActionButtons( run=True, repl=True, files=True, chart=HAS_QTCHART)
--- a/eric6/MicroPython/PyBoardDevices.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/PyBoardDevices.py Sat Apr 10 18:38:27 2021 +0200 @@ -44,7 +44,7 @@ @param parent reference to the parent object @type QObject """ - super(PyBoardDevice, self).__init__(microPythonWidget, deviceType, + super().__init__(microPythonWidget, deviceType, parent) self.__workspace = self.__findWorkspace() @@ -53,7 +53,7 @@ """ Public method to enable the supported action buttons. """ - super(PyBoardDevice, self).setButtons() + super().setButtons() self.microPython.setActionButtons( run=True, repl=True, files=True, chart=HAS_QTCHART) @@ -199,7 +199,7 @@ ) ) - return super(PyBoardDevice, self).getWorkspace() + return super().getWorkspace() def getDocumentationUrl(self): """
--- a/eric6/MicroPython/RP2040Devices.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/RP2040Devices.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,14 +31,14 @@ @param parent reference to the parent object @type QObject """ - super(RP2040Device, self).__init__( + super().__init__( microPythonWidget, deviceType, parent) def setButtons(self): """ Public method to enable the supported action buttons. """ - super(RP2040Device, self).setButtons() + super().setButtons() self.microPython.setActionButtons( run=True, repl=True, files=True, chart=HAS_QTCHART)
--- a/eric6/MicroPython/UF2FlashDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/UF2FlashDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -513,7 +513,7 @@ @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """ - super(UF2FlashDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.refreshButton.setIcon(UI.PixmapCache.getIcon("rescan"))
--- a/eric6/MicroPython/UnknownDevicesDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MicroPython/UnknownDevicesDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """ - super(UnknownDevicesDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__loadDevices()
--- a/eric6/MultiProject/AddProjectDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MultiProject/AddProjectDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -40,7 +40,7 @@ @param category category to be preset @type str """ - super(AddProjectDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.filenamePicker.setMode(E5PathPickerModes.OpenFileMode)
--- a/eric6/MultiProject/MultiProject.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MultiProject/MultiProject.py Sat Apr 10 18:38:27 2021 +0200 @@ -70,7 +70,7 @@ @param filename optional filename of a multi project file to open (string) """ - super(MultiProject, self).__init__(parent) + super().__init__(parent) self.ui = parent self.projectObject = project
--- a/eric6/MultiProject/MultiProjectBrowser.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MultiProject/MultiProjectBrowser.py Sat Apr 10 18:38:27 2021 +0200 @@ -37,7 +37,7 @@ @param parent parent widget @type QWidget """ - super(MultiProjectBrowser, self).__init__(parent) + super().__init__(parent) self.multiProject = multiProject self.project = project
--- a/eric6/MultiProject/MultiProjectFile.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MultiProject/MultiProjectFile.py Sat Apr 10 18:38:27 2021 +0200 @@ -35,7 +35,7 @@ @param parent reference to the parent object (defaults to None) @type QObject (optional) """ - super(MultiProjectFile, self).__init__(parent) + super().__init__(parent) self.__multiProject = multiProject def writeFile(self, filename: str) -> bool:
--- a/eric6/MultiProject/PropertiesDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/MultiProject/PropertiesDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param new flag indicating the generation of a new multi project @param parent parent widget of this dialog (QWidget) """ - super(PropertiesDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.multiProject = multiProject
--- a/eric6/Network/IRC/IrcChannelEditDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Network/IRC/IrcChannelEditDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ channel (boolean) @param parent reference to the parent widget (QWidget) """ - super(IrcChannelEditDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.nameEdit.setText(name)
--- a/eric6/Network/IRC/IrcChannelWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Network/IRC/IrcChannelWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -62,7 +62,7 @@ @param parent reference to the parent widget (QListWidget or QListWidgetItem) """ - super(IrcUserItem, self).__init__(name, parent) + super().__init__(name, parent) self.__privilege = IrcUserItem.Normal self.__name = name @@ -251,7 +251,7 @@ @param parent reference to the parent widget (QWidget) """ - super(IrcChannelWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__ui = e5App().getObject("UserInterface")
--- a/eric6/Network/IRC/IrcIdentitiesEditDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Network/IRC/IrcIdentitiesEditDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -35,7 +35,7 @@ @param identityName name of the identity to be selected (string) @param parent reference to the parent widget (QWidget) """ - super(IrcIdentitiesEditDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.addButton.setIcon(UI.PixmapCache.getIcon("plus")) @@ -85,7 +85,7 @@ self.on_nicknameAddButton_clicked() return True - return super(IrcIdentitiesEditDialog, self).eventFilter(obj, evt) + return super().eventFilter(obj, evt) def __updateIdentitiesButtons(self): """ @@ -490,4 +490,4 @@ self.__refreshCurrentIdentity() self.__manager.setIdentities(self.__identities) - super(IrcIdentitiesEditDialog, self).accept() + super().accept()
--- a/eric6/Network/IRC/IrcMessageEdit.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Network/IRC/IrcMessageEdit.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param side side the clear button should be shown at (E5LineEdit.RightSide, E5LineEdit.LeftSide) """ - super(IrcMessageEdit, self).__init__(parent, inactiveText, side) + super().__init__(parent, inactiveText, side) self.__historyList = [""] # initialize with one empty line self.__historyLine = 0 @@ -42,7 +42,7 @@ @param text text to be set (string) """ - super(IrcMessageEdit, self).setText(text) + super().setText(text) self.setCursorPosition(len(text)) def keyPressEvent(self, evt): @@ -65,7 +65,7 @@ # ^U: clear the text self.setText("") - super(IrcMessageEdit, self).keyPressEvent(evt) + super().keyPressEvent(evt) def wheelEvent(self, evt): """ @@ -79,7 +79,7 @@ elif delta < 0: self.__getHistory(False) - super(IrcMessageEdit, self).wheelEvent(evt) + super().wheelEvent(evt) def __addHistory(self, txt): """
--- a/eric6/Network/IRC/IrcNetworkEditDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Network/IRC/IrcNetworkEditDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -32,7 +32,7 @@ @param networkName name of the network to work on (string) @param parent reference to the parent widget (QWidget) """ - super(IrcNetworkEditDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__manager = manager
--- a/eric6/Network/IRC/IrcNetworkListDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Network/IRC/IrcNetworkListDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ @param manager reference to the IRC network manager (IrcNetworkManager) @param parent reference to the parent widget (QWidget) """ - super(IrcNetworkListDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__manager = manager
--- a/eric6/Network/IRC/IrcNetworkManager.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Network/IRC/IrcNetworkManager.py Sat Apr 10 18:38:27 2021 +0200 @@ -38,7 +38,7 @@ @param name name of the identity (string) """ - super(IrcIdentity, self).__init__() + super().__init__() self.__name = name self.__realName = "" @@ -293,7 +293,7 @@ @param name name of the server (string) """ - super(IrcServer, self).__init__() + super().__init__() self.__server = name self.__port = IrcServer.DefaultPort @@ -397,7 +397,7 @@ @param name name of the network (string) """ - super(IrcChannel, self).__init__() + super().__init__() self.__name = name self.__key = "" @@ -475,7 +475,7 @@ @param name name of the network (string) """ - super(IrcNetwork, self).__init__() + super().__init__() self.__name = name self.__identity = "" @@ -726,7 +726,7 @@ @param parent reference to the parent object (QObject) """ - super(IrcNetworkManager, self).__init__(parent) + super().__init__(parent) self.__loaded = False self.__saveTimer = AutoSaver(self, self.save)
--- a/eric6/Network/IRC/IrcNetworkWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Network/IRC/IrcNetworkWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -49,7 +49,7 @@ @param parent reference to the parent widget (QWidget) """ - super(IrcNetworkWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.connectButton.setIcon(UI.PixmapCache.getIcon("ircConnect"))
--- a/eric6/Network/IRC/IrcServerEditDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Network/IRC/IrcServerEditDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param server reference to the IRC server object (IrcServer) @param parent reference to the parent widget (QWidget) """ - super(IrcServerEditDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__okButton = self.buttonBox.button(
--- a/eric6/Network/IRC/IrcWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Network/IRC/IrcWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -52,7 +52,7 @@ @param parent reference to the parent widget (QWidget) """ - super(IrcWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) from .IrcNetworkManager import IrcNetworkManager
--- a/eric6/PipInterface/Pip.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PipInterface/Pip.py Sat Apr 10 18:38:27 2021 +0200 @@ -49,7 +49,7 @@ @param parent parent @type QObject """ - super(Pip, self).__init__(parent) + super().__init__(parent) # attributes for the network objects self.__networkManager = QNetworkAccessManager(self)
--- a/eric6/PipInterface/PipDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PipInterface/PipDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param parent reference to the parent widget @type QWidget """ - super(PipDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/PipInterface/PipFileSelectionDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PipInterface/PipFileSelectionDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -37,7 +37,7 @@ @param parent reference to the parent widget @type QWidget """ - super(PipFileSelectionDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) if mode == "requirements":
--- a/eric6/PipInterface/PipFreezeDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PipInterface/PipFreezeDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -37,7 +37,7 @@ @param parent reference to the parent widget @type QWidget """ - super(PipFreezeDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/PipInterface/PipPackageDetailsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PipInterface/PipPackageDetailsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -36,7 +36,7 @@ @param parent reference to the parent widget (defaults to None) @type QWidget (optional) """ - super(PipPackageDetailsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/PipInterface/PipPackagesInputDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PipInterface/PipPackagesInputDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param parent reference to the parent widget @type QWidget """ - super(PipPackagesInputDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowTitle(title)
--- a/eric6/PipInterface/PipPackagesWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PipInterface/PipPackagesWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param data data to be parsed @type str """ - super(PypiSearchResultsParser, self).__init__() + super().__init__() self.__results = [] self.__activeClass = None self.feed(data) @@ -157,7 +157,7 @@ @param parent reference to the parent widget @type QWidget """ - super(PipPackagesWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.pipMenuButton.setObjectName(
--- a/eric6/PluginManager/PluginDetailsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PluginManager/PluginDetailsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param details dictionary containing the info to be displayed @param parent parent of this dialog (QWidget) """ - super(PluginDetailsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/PluginManager/PluginInfoDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PluginManager/PluginInfoDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param pluginManager reference to the plugin manager object @param parent parent of this dialog (QWidget) """ - super(PluginInfoDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/PluginManager/PluginInstallDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PluginManager/PluginInstallDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -48,7 +48,7 @@ installation (list of strings) @param parent parent of this dialog (QWidget) """ - super(PluginInstallWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) if pluginManager is None: @@ -620,7 +620,7 @@ installation (list of strings) @param parent reference to the parent widget (QWidget) """ - super(PluginInstallDialog, self).__init__(parent) + super().__init__(parent) self.setSizeGripEnabled(True) self.__layout = QVBoxLayout(self) @@ -657,7 +657,7 @@ installation (list of strings) @param parent reference to the parent widget (QWidget) """ - super(PluginInstallWindow, self).__init__(parent) + super().__init__(parent) self.cw = PluginInstallWidget(None, pluginFileNames, self) size = self.cw.size() self.setCentralWidget(self.cw)
--- a/eric6/PluginManager/PluginManager.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PluginManager/PluginManager.py Sat Apr 10 18:38:27 2021 +0200 @@ -95,7 +95,7 @@ @exception PluginModulesError raised to indicate the absence of plug-in modules """ - super(PluginManager, self).__init__(parent) + super().__init__(parent) self.__ui = parent self.__develPluginFile = develPlugin
--- a/eric6/PluginManager/PluginRepositoryDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PluginManager/PluginRepositoryDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -76,7 +76,7 @@ @param parent parent of this dialog @type QWidget """ - super(PluginRepositoryWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) if pluginManager is None: @@ -796,7 +796,7 @@ @param parent reference to the parent widget @type QWidget """ - super(PluginRepositoryDialog, self).__init__(parent) + super().__init__(parent) self.setSizeGripEnabled(True) self.__layout = QVBoxLayout(self) @@ -838,7 +838,7 @@ @param parent reference to the parent widget (QWidget) """ - super(PluginRepositoryWindow, self).__init__(parent) + super().__init__(parent) self.cw = PluginRepositoryWidget(None, self) size = self.cw.size() self.setCentralWidget(self.cw)
--- a/eric6/PluginManager/PluginUninstallDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/PluginManager/PluginUninstallDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -41,7 +41,7 @@ @param pluginManager reference to the plugin manager object @param parent parent of this dialog (QWidget) """ - super(PluginUninstallWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) if pluginManager is None: @@ -216,7 +216,7 @@ @param pluginManager reference to the plugin manager object @param parent reference to the parent widget (QWidget) """ - super(PluginUninstallDialog, self).__init__(parent) + super().__init__(parent) self.setSizeGripEnabled(True) self.__layout = QVBoxLayout(self) @@ -243,7 +243,7 @@ @param parent reference to the parent widget (QWidget) """ - super(PluginUninstallWindow, self).__init__(parent) + super().__init__(parent) self.cw = PluginUninstallWidget(None, self) size = self.cw.size() self.setCentralWidget(self.cw)
--- a/eric6/Plugins/AboutPlugin/AboutDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/AboutPlugin/AboutDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -746,7 +746,7 @@ @param parent reference to the parent widget (QWidget) """ - super(AboutDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsChecker.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsChecker.py Sat Apr 10 18:38:27 2021 +0200 @@ -235,7 +235,7 @@ @param sourceLines lines of source code @type list of str """ - super(FunctionVisitor, self).__init__() + super().__init__() self.__sourceLines = sourceLines
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleAddBuiltinIgnoreDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleAddBuiltinIgnoreDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CodeStyleAddBuiltinIgnoreDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__updateOkButton
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py Sat Apr 10 18:38:27 2021 +0200 @@ -54,7 +54,7 @@ @param options options for the report (optparse.Values) """ - super(CodeStyleCheckerReport, self).__init__(options) + super().__init__(options) self.__repeat = options.repeat self.errors = [] @@ -70,7 +70,7 @@ @param args arguments for the message (list) @return error code (string) """ - code = super(CodeStyleCheckerReport, self).error_args( + code = super().error_args( line_number, offset, code, check, *args) if code and (self.counters[code] == 1 or self.__repeat): self.errors.append(
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -113,7 +113,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CodeStyleCheckerDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -37,7 +37,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CodeStyleCodeSelectionDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) textWrapper = textwrap.TextWrapper(width=60)
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleStatisticsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleStatisticsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ @param parent reference to the parent widget @type QWidget """ - super(CodeStyleStatisticsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) stats = statistics.copy()
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Complexity/ComplexityChecker.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Complexity/ComplexityChecker.py Sat Apr 10 18:38:27 2021 +0200 @@ -187,7 +187,7 @@ """ Constructor """ - super(LineComplexityVisitor, self).__init__() + super().__init__() self.__count = {} def visit(self, node):
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Complexity/mccabe.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Complexity/mccabe.py Sat Apr 10 18:38:27 2021 +0200 @@ -88,7 +88,7 @@ """ def __init__(self): - super(PathGraphingAstVisitor, self).__init__() + super().__init__() self.classname = "" self.graphs = {} self.reset() @@ -155,7 +155,7 @@ if isinstance(node, ast.stmt): self.visitSimpleStatement(node) else: - super(PathGraphingAstVisitor, self).default(node, *args) + super().default(node, *args) def visitLoop(self, node): name = "Loop %d" % node.lineno
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py Sat Apr 10 18:38:27 2021 +0200 @@ -952,7 +952,7 @@ """ Constructor """ - super(TextVisitor, self).__init__() + super().__init__() self.nodes = [] self.calls = {} @@ -996,9 +996,9 @@ if AstUtilities.isBaseString(node): self.__addNode(node) else: - super(TextVisitor, self).generic_visit(node) + super().generic_visit(node) else: - super(TextVisitor, self).generic_visit(node) + super().generic_visit(node) def __visitDefinition(self, node): """ @@ -1094,7 +1094,7 @@ AstUtilities.isBaseString(node.args[0]) ): self.calls[node.args[0]] = (node, True) - super(TextVisitor, self).generic_visit(node) + super().generic_visit(node) class LoggingVisitor(ast.NodeVisitor): @@ -1114,7 +1114,7 @@ """ Constructor """ - super(LoggingVisitor, self).__init__() + super().__init__() self.__currentLoggingCall = None self.__currentLoggingArgument = None @@ -1202,7 +1202,7 @@ if self.__withinLoggingStatement(): if self.__withinLoggingArgument() and self.__isFormatCall(node): self.violations.append((node, "M651")) - super(LoggingVisitor, self).generic_visit(node) + super().generic_visit(node) return loggingLevel = self.__detectLoggingLevel(node) @@ -1212,7 +1212,7 @@ # we are in some other statement if loggingLevel is None: - super(LoggingVisitor, self).generic_visit(node) + super().generic_visit(node) return # we are entering a new logging statement @@ -1231,7 +1231,7 @@ ): self.__currentExtraKeyword = child - super(LoggingVisitor, self).visit(child) + super().visit(child) self.__currentLoggingArgument = None self.__currentExtraKeyword = None @@ -1256,7 +1256,7 @@ if isinstance(node.op, ast.Add): self.violations.append((node, "M653")) - super(LoggingVisitor, self).generic_visit(node) + super().generic_visit(node) def visit_JoinedStr(self, node): """ @@ -1270,7 +1270,7 @@ if self.__withinLoggingArgument(): self.violations.append((node, "M654")) - super(LoggingVisitor, self).generic_visit(node) + super().generic_visit(node) class BugBearVisitor(ast.NodeVisitor): @@ -1288,7 +1288,7 @@ """ Constructor """ - super(BugBearVisitor, self).__init__() + super().__init__() self.__nodeStack = [] self.__nodeWindow = [] @@ -1305,7 +1305,7 @@ self.__nodeWindow.append(node) self.__nodeWindow = self.__nodeWindow[-BugBearVisitor.NodeWindowSize:] - super(BugBearVisitor, self).visit(node) + super().visit(node) self.__nodeStack.pop() @@ -1530,7 +1530,7 @@ """ Constructor """ - super(NameFinder, self).__init__() + super().__init__() self.__names = {} @@ -1552,9 +1552,9 @@ """ if isinstance(node, list): for elem in node: - super(NameFinder, self).visit(elem) + super().visit(elem) else: - super(NameFinder, self).visit(node) + super().visit(node) def getNames(self): """ @@ -1578,7 +1578,7 @@ """ Constructor """ - super(ReturnVisitor, self).__init__() + super().__init__() self.__stack = [] self.violations = [] @@ -1939,7 +1939,7 @@ """ Constructor """ - super(DateTimeVisitor, self).__init__() + super().__init__() self.violations = [] @@ -2159,7 +2159,7 @@ """ Constructor """ - super(SysVersionVisitor, self).__init__() + super().__init__() self.violations = [] self.__fromImports = {}
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/PathLib/PathlibChecker.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/PathLib/PathlibChecker.py Sat Apr 10 18:38:27 2021 +0200 @@ -197,7 +197,7 @@ AST node and the resolved name @type func """ - super(PathlibVisitor, self).__init__() + super().__init__() self.__checkCallback = checkCallback self.__importAlias = {}
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py Sat Apr 10 18:38:27 2021 +0200 @@ -63,7 +63,7 @@ @param errorCallback callback function to register an error @type func """ - super(SimplifyNodeVisitor, self).__init__() + super().__init__() self.__error = errorCallback @@ -1156,13 +1156,13 @@ def __check182(self, node): """ - Private method to check for calls of type 'super(Foo, self)' that could + Private method to check for calls of type 'super()' that could be shortened to 'super()'. @param node reference to the AST node to be checked @type ast.Call """ - # super(Foo, self) + # super() if ( self.__classDefinitionStack and isinstance(node.func, ast.Name) and
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py Sat Apr 10 18:38:27 2021 +0200 @@ -177,7 +177,7 @@ # Python-specifics not part of flake8-simplify "Y181": ["foo += 42", "foo = foo + 42"], - "Y182": ["super(Foo, self)"], + "Y182": ["super()"], # Comparations "Y201": ["foo", "bar"],
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py Sat Apr 10 18:38:27 2021 +0200 @@ -2386,7 +2386,7 @@ """Collect and print the results of the checks.""" def __init__(self, options): - super(StandardReport, self).__init__(options) + super().__init__(options) self._fmt = REPORT_FORMAT.get(options.format.lower(), options.format) self._repeat = options.repeat @@ -2396,12 +2396,12 @@ def init_file(self, filename, lines, expected, line_offset): """Signal a new file.""" self._deferred_print = [] - return super(StandardReport, self).init_file( + return super().init_file( filename, lines, expected, line_offset) def error(self, line_number, offset, text, check): """Report an error, according to options.""" - code = super(StandardReport, self).error(line_number, offset, + code = super().error(line_number, offset, text, check) if code and (self.counters[code] == 1 or self._repeat): self._deferred_print.append( @@ -2410,7 +2410,7 @@ def error_args(self, line_number, offset, code, check, *args): """Report an error, according to options.""" - code = super(StandardReport, self).error_args(line_number, offset, + code = super().error_args(line_number, offset, code, check, *args) if code and (self.counters[code] == 1 or self._repeat): self._deferred_print.append( @@ -2450,13 +2450,13 @@ """Collect and print the results for the changed lines only.""" def __init__(self, options): - super(DiffReport, self).__init__(options) + super().__init__(options) self._selected = options.selected_lines def error(self, line_number, offset, text, check): if line_number not in self._selected[self.filename]: return - return super(DiffReport, self).error(line_number, offset, text, check) + return super().error(line_number, offset, text, check) class StyleGuide(object):
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckService.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckService.py Sat Apr 10 18:38:27 2021 +0200 @@ -36,7 +36,7 @@ """ Constructor """ - super(SyntaxCheckService, self).__init__() + super().__init__() self.backgroundService = e5App().getObject("BackgroundService") self.__supportedLanguages = {}
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -39,7 +39,7 @@ @param parent The parent widget. (QWidget) """ - super(SyntaxCheckerDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/checker.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/checker.py Sat Apr 10 18:38:27 2021 +0200 @@ -356,7 +356,7 @@ """A definition created for all Python builtins.""" def __init__(self, name): - super(Builtin, self).__init__(name, None) + super().__init__(name, None) def __repr__(self): return '<%s object %r at 0x%x>' % (self.__class__.__name__, @@ -401,7 +401,7 @@ def __init__(self, name, source, full_name=None): self.fullName = full_name or name self.redefined = [] - super(Importation, self).__init__(name, source) + super().__init__(name, source) def redefines(self, other): if isinstance(other, SubmoduleImportation): @@ -450,13 +450,13 @@ # A dot should only appear in the name when it is a submodule import assert '.' in name and (not source or isinstance(source, ast.Import)) package_name = name.split('.')[0] - super(SubmoduleImportation, self).__init__(package_name, source) + super().__init__(package_name, source) self.fullName = name def redefines(self, other): if isinstance(other, Importation): return self.fullName == other.fullName - return super(SubmoduleImportation, self).redefines(other) + return super().redefines(other) def __str__(self): return self.fullName @@ -477,7 +477,7 @@ else: full_name = module + '.' + self.real_name - super(ImportationFrom, self).__init__(name, source, full_name) + super().__init__(name, source, full_name) def __str__(self): """Return import full name with alias.""" @@ -500,7 +500,7 @@ """A binding created by a 'from x import *' statement.""" def __init__(self, name, source): - super(StarImportation, self).__init__('*', source) + super().__init__('*', source) # Each star importation needs a unique name, and # may not be the module name otherwise it will be deemed imported self.name = name + '.*' @@ -526,7 +526,7 @@ """ def __init__(self, name, source, scope): - super(FutureImportation, self).__init__(name, source, '__future__') + super().__init__(name, source, '__future__') self.used = (scope, source) @@ -614,7 +614,7 @@ # If not list concatenation else: break - super(ExportBinding, self).__init__(name, source) + super().__init__(name, source) class Scope(dict): @@ -640,7 +640,7 @@ '__traceback_supplement__'} def __init__(self): - super(FunctionScope, self).__init__() + super().__init__() # Simplify: manage the special locals as globals self.globals = self.alwaysUsed.copy() self.returnValue = None # First non-empty return
--- a/eric6/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -35,7 +35,7 @@ @param parms parameters to set in the dialog @param parent parent widget of this dialog """ - super(EricapiConfigDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.outputFilePicker.setMode(E5PathPickerModes.SaveFileMode) @@ -287,4 +287,4 @@ self.parameters['languages'].append(itm.text()) # call the accept slot of the base class - super(EricapiConfigDialog, self).accept() + super().accept()
--- a/eric6/Plugins/DocumentationPlugins/Ericapi/EricapiExecDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/DocumentationPlugins/Ericapi/EricapiExecDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param cmdname name of the ericapi generator (string) @param parent parent widget of this dialog (QWidget) """ - super(EricapiExecDialog, self).__init__(parent) + super().__init__(parent) self.setModal(True) self.setupUi(self)
--- a/eric6/Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -38,7 +38,7 @@ @param parms parameters to set in the dialog @param parent parent widget of this dialog """ - super(EricdocConfigDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.outputDirPicker.setMode(E5PathPickerModes.DirectoryMode) @@ -577,4 +577,4 @@ ) # call the accept slot of the base class - super(EricdocConfigDialog, self).accept() + super().accept()
--- a/eric6/Plugins/DocumentationPlugins/Ericdoc/EricdocExecDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/DocumentationPlugins/Ericdoc/EricdocExecDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param cmdname name of the documentation generator (string) @param parent parent widget of this dialog (QWidget) """ - super(EricdocExecDialog, self).__init__(parent) + super().__init__(parent) self.setModal(True) self.setupUi(self)
--- a/eric6/Plugins/PluginAbout.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginAbout.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(AboutPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__aboutDialog = None
--- a/eric6/Plugins/PluginCodeStyleChecker.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginCodeStyleChecker.py Sat Apr 10 18:38:27 2021 +0200 @@ -63,7 +63,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(CodeStyleCheckerPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__initialize()
--- a/eric6/Plugins/PluginEricapi.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginEricapi.py Sat Apr 10 18:38:27 2021 +0200 @@ -81,7 +81,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(EricapiPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__initialize()
--- a/eric6/Plugins/PluginEricdoc.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginEricdoc.py Sat Apr 10 18:38:27 2021 +0200 @@ -102,7 +102,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(EricdocPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__initialize()
--- a/eric6/Plugins/PluginSyntaxChecker.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginSyntaxChecker.py Sat Apr 10 18:38:27 2021 +0200 @@ -50,7 +50,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(SyntaxCheckerPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__initialize()
--- a/eric6/Plugins/PluginTranslator.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginTranslator.py Sat Apr 10 18:38:27 2021 +0200 @@ -96,7 +96,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(TranslatorPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__initialize()
--- a/eric6/Plugins/PluginVcsGit.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginVcsGit.py Sat Apr 10 18:38:27 2021 +0200 @@ -188,7 +188,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(VcsGitPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__translator = None
--- a/eric6/Plugins/PluginVcsMercurial.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginVcsMercurial.py Sat Apr 10 18:38:27 2021 +0200 @@ -192,7 +192,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(VcsMercurialPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui from VcsPlugins.vcsMercurial.ProjectHelper import HgProjectHelper
--- a/eric6/Plugins/PluginVcsPySvn.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginVcsPySvn.py Sat Apr 10 18:38:27 2021 +0200 @@ -149,7 +149,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(VcsPySvnPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__subversionDefaults = {
--- a/eric6/Plugins/PluginVcsSubversion.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginVcsSubversion.py Sat Apr 10 18:38:27 2021 +0200 @@ -155,7 +155,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(VcsSubversionPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__subversionDefaults = {
--- a/eric6/Plugins/PluginVmListspace.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginVmListspace.py Sat Apr 10 18:38:27 2021 +0200 @@ -54,7 +54,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(VmListspacePlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui def activate(self):
--- a/eric6/Plugins/PluginVmTabview.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginVmTabview.py Sat Apr 10 18:38:27 2021 +0200 @@ -54,7 +54,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(VmTabviewPlugin, self).__init__(ui) + super().__init__(ui) self.__ui = ui def activate(self):
--- a/eric6/Plugins/PluginWizardDotDesktop.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardDotDesktop.py Sat Apr 10 18:38:27 2021 +0200 @@ -46,7 +46,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(DotDesktopWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__action = None
--- a/eric6/Plugins/PluginWizardE5MessageBox.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardE5MessageBox.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(E5MessageBoxWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui def activate(self):
--- a/eric6/Plugins/PluginWizardEricPlugin.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardEricPlugin.py Sat Apr 10 18:38:27 2021 +0200 @@ -48,7 +48,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(WizardEricPluginWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__action = None
--- a/eric6/Plugins/PluginWizardPyRegExp.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardPyRegExp.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(PyRegExpWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui def activate(self):
--- a/eric6/Plugins/PluginWizardQColorDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardQColorDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(ColorDialogWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui def activate(self):
--- a/eric6/Plugins/PluginWizardQFileDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardQFileDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -44,7 +44,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(FileDialogWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui # PyQt5
--- a/eric6/Plugins/PluginWizardQFontDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardQFontDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(FontDialogWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui def activate(self):
--- a/eric6/Plugins/PluginWizardQInputDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardQInputDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(InputDialogWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui def activate(self):
--- a/eric6/Plugins/PluginWizardQMessageBox.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardQMessageBox.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(MessageBoxWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui def activate(self):
--- a/eric6/Plugins/PluginWizardQRegularExpression.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardQRegularExpression.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(QRegularExpressionWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui def activate(self):
--- a/eric6/Plugins/PluginWizardSetup.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/PluginWizardSetup.py Sat Apr 10 18:38:27 2021 +0200 @@ -47,7 +47,7 @@ @param ui reference to the user interface object (UI.UserInterface) """ - super(SetupWizard, self).__init__(ui) + super().__init__(ui) self.__ui = ui self.__action = None
--- a/eric6/Plugins/UiExtensionPlugins/Translator/ConfigurationPage/TranslatorPage.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/ConfigurationPage/TranslatorPage.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param plugin reference to the plugin object """ - super(TranslatorPage, self).__init__() + super().__init__() self.setupUi(self) self.setObjectName("TranslatorPage")
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/DeepLEngine.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/DeepLEngine.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param parent reference to the parent object @type QObject """ - super(DeepLEngine, self).__init__(plugin, parent) + super().__init__(plugin, parent) QTimer.singleShot(0, self.availableTranslationsLoaded.emit)
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GlosbeEngine.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GlosbeEngine.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @param plugin reference to the plugin object (TranslatorPlugin) @param parent reference to the parent object (QObject) """ - super(GlosbeEngine, self).__init__(plugin, parent) + super().__init__(plugin, parent) QTimer.singleShot(0, self.availableTranslationsLoaded.emit)
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GoogleV1Engine.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GoogleV1Engine.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param plugin reference to the plugin object (TranslatorPlugin) @param parent reference to the parent object (QObject) """ - super(GoogleV1Engine, self).__init__(plugin, parent) + super().__init__(plugin, parent) QTimer.singleShot(0, self.availableTranslationsLoaded.emit)
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GoogleV2Engine.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GoogleV2Engine.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param plugin reference to the plugin object (TranslatorPlugin) @param parent reference to the parent object (QObject) """ - super(GoogleV2Engine, self).__init__(plugin, parent) + super().__init__(plugin, parent) QTimer.singleShot(0, self.availableTranslationsLoaded.emit)
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/IbmWatsonEngine.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/IbmWatsonEngine.py Sat Apr 10 18:38:27 2021 +0200 @@ -41,7 +41,7 @@ @param parent reference to the parent object @type QObject """ - super(IbmWatsonEngine, self).__init__(plugin, parent) + super().__init__(plugin, parent) self.__ui = parent
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/MicrosoftEngine.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/MicrosoftEngine.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param plugin reference to the plugin object (TranslatorPlugin) @param parent reference to the parent object (QObject) """ - super(MicrosoftEngine, self).__init__(plugin, parent) + super().__init__(plugin, parent) self.__mappings = { "zh-CN": "zh-CHS",
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/MyMemoryEngine.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/MyMemoryEngine.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @param plugin reference to the plugin object (TranslatorPlugin) @param parent reference to the parent object (QObject) """ - super(MyMemoryEngine, self).__init__(plugin, parent) + super().__init__(plugin, parent) QTimer.singleShot(0, self.availableTranslationsLoaded.emit)
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/TranslationEngine.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/TranslationEngine.py Sat Apr 10 18:38:27 2021 +0200 @@ -27,7 +27,7 @@ @param plugin reference to the plugin object (TranslatorPlugin) @param parent reference to the parent object (QObject) """ - super(TranslationEngine, self).__init__(parent) + super().__init__(parent) self.plugin = plugin
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/YandexEngine.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/YandexEngine.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param plugin reference to the plugin object (TranslatorPlugin) @param parent reference to the parent object (QObject) """ - super(YandexEngine, self).__init__(plugin, parent) + super().__init__(plugin, parent) self.__errors = { 401: self.tr("Yandex: Invalid API key."),
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorLanguagesDb.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorLanguagesDb.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param parent reference to the parent object (QObject) """ - super(TranslatorLanguagesDb, self).__init__(parent) + super().__init__(parent) self.__languages = { "af": self.tr("Afrikaans"),
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorRequest.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorRequest.py Sat Apr 10 18:38:27 2021 +0200 @@ -27,7 +27,7 @@ @param parent reference to the parent object (QObject) """ - super(TranslatorRequest, self).__init__(parent) + super().__init__(parent) self.__contentTypes = { "form": b"application/x-www-form-urlencoded",
--- a/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/UiExtensionPlugins/Translator/TranslatorWidget.py Sat Apr 10 18:38:27 2021 +0200 @@ -38,7 +38,7 @@ @param translator reference to the translator object (Translator) @param parent reference to the parent widget (QWidget) """ - super(TranslatorWidget, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__plugin = plugin
--- a/eric6/Plugins/VcsPlugins/vcsGit/ConfigurationPage/GitPage.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/ConfigurationPage/GitPage.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @param plugin reference to the plugin object """ - super(GitPage, self).__init__() + super().__init__() self.setupUi(self) self.setObjectName("GitPage")
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitAddRemoteDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitAddRemoteDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param parent reference to the parent widget @type QWidget """ - super(GitAddRemoteDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__updateOK()
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitApplyBundleDataDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitApplyBundleDataDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param branches list of available branch names (list of strings) @param parent reference to the parent widget (QWidget) """ - super(GitApplyBundleDataDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.headCombo.addItems(sorted(bundleHeads))
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitArchiveDataDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitArchiveDataDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ @param formatsList list of archive formats (list of strings) @param parent reference to the parent widget (QWidget) """ - super(GitArchiveDataDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.fileButton.setIcon(UI.PixmapCache.getIcon("open"))
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitBisectLogBrowserDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitBisectLogBrowserDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -39,7 +39,7 @@ @param vcs reference to the vcs object @param parent reference to the parent widget (QWidget) """ - super(GitBisectLogBrowserDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__position = QPoint() @@ -102,7 +102,7 @@ self.move(self.__position) self.__resetUI() - super(GitBisectLogBrowserDialog, self).show() + super().show() def __resetUI(self): """ @@ -381,4 +381,4 @@ self.intercept = False evt.accept() return - super(GitBisectLogBrowserDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt)
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitBisectStartDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitBisectStartDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -23,7 +23,7 @@ @param parent reference to the parent widget (QWidget) """ - super(GitBisectStartDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.okButton = self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitBlameDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitBlameDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ @param vcs reference to the vcs object @param parent reference to the parent widget (QWidget) """ - super(GitBlameDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window) @@ -284,4 +284,4 @@ self.intercept = False evt.accept() return - super(GitBlameDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt)
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitBranchDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitBranchDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -36,7 +36,7 @@ @param branchOp desired branch operation (integer) @param parent parent widget (QWidget) """ - super(GitBranchDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.okButton = self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitBranchPushDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitBranchPushDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ @param delete flag indicating a delete branch action (boolean) @param parent reference to the parent widget (QWidget) """ - super(GitBranchPushDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__okButton = self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitBundleDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitBundleDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param branchesList list of branches (list of strings) @param parent parent widget (QWidget) """ - super(GitBundleDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitChangeRemoteUrlDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitChangeRemoteUrlDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param parent reference to the parent widget @type QWidget """ - super(GitChangeRemoteUrlDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) url = QUrl(remoteUrl)
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitCherryPickDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitCherryPickDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ strings) @param parent reference to the parent widget (QWidget) """ - super(GitCherryPickDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) if commits:
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitCommandDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitCommandDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param ppath pathname of the project directory (string) @param parent parent widget of this dialog (QWidget) """ - super(GitCommandDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.okButton = self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitCommitDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitCommitDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param commitAll flag indicating to commit all local changes (boolean) @param parent parent widget (QWidget) """ - super(GitCommitDialog, self).__init__( + super().__init__( parent, Qt.WindowFlags(Qt.WindowType.Window)) self.setupUi(self)
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitCopyDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitCopyDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ @param parent parent widget (QWidget) @param move flag indicating a move operation (boolean) """ - super(GitCopyDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.dirButton.setIcon(UI.PixmapCache.getIcon("open"))
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitDescribeDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitDescribeDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param vcs reference to the vcs object @param parent reference to the parent widget (QWidget) """ - super(GitDescribeDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window) @@ -280,4 +280,4 @@ evt.accept() return - super(GitDescribeDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt)
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -38,7 +38,7 @@ @param git reference to the Git interface object (Git) @param parent parent widget (QWidget) """ - super(GitDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button( @@ -315,7 +315,7 @@ self.intercept = False evt.accept() return - super(GitDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt) def hasAddOrDelete(self): """
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitDiffDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitDiffDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -36,7 +36,7 @@ @param vcs reference to the vcs object @param parent parent widget (QWidget) """ - super(GitDiffDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.refreshButton = self.buttonBox.addButton(
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitDiffGenerator.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitDiffGenerator.py Sat Apr 10 18:38:27 2021 +0200 @@ -32,7 +32,7 @@ @param vcs reference to the vcs object @param parent parent widget (QWidget) """ - super(GitDiffGenerator, self).__init__(parent) + super().__init__(parent) self.vcs = vcs
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitDiffHighlighter.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitDiffHighlighter.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ """ self.whitespace = whitespace - super(GitDiffHighlighter, self).__init__(doc) + super().__init__(doc) def generateRules(self): """
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitFetchDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitFetchDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param repodir directory name of the local repository (string) @param parent reference to the parent widget (QWidget) """ - super(GitFetchDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__vcs = vcs
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitListDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitListDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -23,7 +23,7 @@ @param selections list of entries to select from (list of string) @param parent reference to the parent widget (QWidget) """ - super(GitListDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.selectionList.addItems(selections)
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitLogBrowserDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -69,7 +69,7 @@ @param vcs reference to the vcs object @param parent parent widget (QWidget) """ - super(GitLogBrowserDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) windowFlags = self.windowFlags() @@ -413,7 +413,7 @@ self.__restoreSplitterStates() self.__resetUI() - super(GitLogBrowserDialog, self).show() + super().show() def __reloadGeometry(self): """ @@ -1182,7 +1182,7 @@ self.intercept = False evt.accept() return - super(GitLogBrowserDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt) def __prepareFieldSearch(self): """
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitMergeDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitMergeDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param remoteBranchesList list of remote branches (list of strings) @param parent reference to the parent widget (QWidget) """ - super(GitMergeDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitNewProjectOptionsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitNewProjectOptionsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ @param vcs reference to the version control object @param parent parent widget (QWidget) """ - super(GitNewProjectOptionsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__vcs = vcs
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitOptionsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitOptionsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ @param project reference to the project object @param parent parent widget (QWidget) """ - super(GitOptionsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) msh = self.minimumSizeHint()
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitPatchFilesDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitPatchFilesDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ getData() method @param parent reference to the parent widget (QWidget) """ - super(GitPatchFilesDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__rootDir = rootDir
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitPatchStatisticsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitPatchStatisticsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param vcs reference to the VCS object (Git) @param parent reference to the parent widget (QWidget) """ - super(GitPatchStatisticsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitPullDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitPullDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param repodir directory name of the local repository (string) @param parent reference to the parent widget (QWidget) """ - super(GitPullDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__vcs = vcs
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitPushDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitPushDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param repodir directory name of the local repository (string) @param parent reference to the parent widget (QWidget) """ - super(GitPushDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__vcs = vcs
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitReflogBrowserDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitReflogBrowserDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -41,7 +41,7 @@ @param vcs reference to the vcs object @param parent reference to the parent widget (QWidget) """ - super(GitReflogBrowserDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__position = QPoint() @@ -115,7 +115,7 @@ self.move(self.__position) self.__resetUI() - super(GitReflogBrowserDialog, self).show() + super().show() def __resetUI(self): """ @@ -429,7 +429,7 @@ self.intercept = False evt.accept() return - super(GitReflogBrowserDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt) @pyqtSlot() def on_nextButton_clicked(self):
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitRemoteCredentialsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitRemoteCredentialsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param parent reference to the parent widget @type QWidget """ - super(GitRemoteCredentialsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) url = QUrl(remoteUrl)
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitRemoteRepositoriesDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitRemoteRepositoriesDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param vcs reference to the vcs object @param parent parent widget (QWidget) """ - super(GitRemoteRepositoriesDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.vcs = vcs @@ -303,7 +303,7 @@ self.intercept = False evt.accept() return - super(GitRemoteRepositoriesDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt) @pyqtSlot() def on_refreshButton_clicked(self):
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitRevisionSelectionDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitRevisionSelectionDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param showHead flag indicating to show the head selection (boolean) @param parent parent widget (QWidget) """ - super(GitRevisionSelectionDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitRevisionsSelectionDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitRevisionsSelectionDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ @param branchesList list of branches (list of strings) @param parent parent widget of the dialog (QWidget) """ - super(GitRevisionsSelectionDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitStashBrowserDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitStashBrowserDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -44,7 +44,7 @@ @param vcs reference to the vcs object @param parent reference to the parent widget (QWidget) """ - super(GitStashBrowserDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button( @@ -119,7 +119,7 @@ self.move(self.__position) self.__resetUI() - super(GitStashBrowserDialog, self).show() + super().show() def __resetUI(self): """ @@ -456,7 +456,7 @@ self.intercept = False evt.accept() return - super(GitStashBrowserDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt) def __showPatch(self): """
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitStashDataDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitStashDataDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ @param parent reference to the parent widget (QWidget) """ - super(GitStashDataDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) msh = self.minimumSizeHint()
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitStatusDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitStatusDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -50,7 +50,7 @@ @param vcs reference to the vcs object @param parent parent widget (QWidget) """ - super(GitStatusDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__toBeCommittedColumn = 0 @@ -288,7 +288,7 @@ """ Public slot to show the dialog. """ - super(GitStatusDialog, self).show() + super().show() geom = self.vcs.getPlugin().getPreferences( "StatusDialogGeometry") @@ -574,7 +574,7 @@ self.intercept = False evt.accept() return - super(GitStatusDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt) @pyqtSlot() def on_refreshButton_clicked(self):
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitSubmoduleAddDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitSubmoduleAddDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -36,7 +36,7 @@ @param parent reference to the parent widget @type QWidget """ - super(GitSubmoduleAddDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__vcs = vcs
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesDeinitDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesDeinitDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -27,7 +27,7 @@ @param parent reference to the parent widget @type QWidget """ - super(GitSubmodulesDeinitDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.submodulesList.addItems(sorted(submodulePaths))
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesListDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesListDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ @param parent reference to the parent widget @type QWidget """ - super(GitSubmodulesListDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) for submodule in submodules:
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesStatusDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesStatusDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ @param parent reference to the parent widget @type QWidget """ - super(GitSubmodulesStatusDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.__statusCodes = {
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesSummaryOptionsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesSummaryOptionsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param parent reference to the parent widget @type QWidget """ - super(GitSubmodulesSummaryOptionsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.submodulesList.addItems(sorted(submodulePaths))
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesSyncDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesSyncDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ @param parent reference to the parent widget @type QWidget """ - super(GitSubmodulesSyncDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.submodulesList.addItems(sorted(submodulePaths))
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesUpdateOptionsDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitSubmodulesUpdateOptionsDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -29,7 +29,7 @@ @param parent reference to the parent widget @type QWidget """ - super(GitSubmodulesUpdateOptionsDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.submodulesList.addItems(sorted(submodulePaths))
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitTagBranchListDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitTagBranchListDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param vcs reference to the vcs object @param parent parent widget (QWidget) """ - super(GitTagBranchListDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window) @@ -382,4 +382,4 @@ evt.accept() return - super(GitTagBranchListDialog, self).keyPressEvent(evt) + super().keyPressEvent(evt)
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitTagDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitTagDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -34,7 +34,7 @@ @param tagName name of the tag (string) @param parent parent widget (QWidget) """ - super(GitTagDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.okButton = self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsGit/GitUserConfigDataDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsGit/GitUserConfigDataDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -23,7 +23,7 @@ @param version Git version info (tuple of two integers) @param parent reference to the parent widget (QWidget) """ - super(GitUserConfigDataDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) msh = self.minimumSizeHint()
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/HgCloseHeadSelectionDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/HgCloseHeadSelectionDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ @param parent reference to the parent widget @type QWidget """ - super(HgCloseHeadSelectionDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/ProjectHelper.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/ProjectHelper.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ """ Constructor """ - super(CloseheadProjectHelper, self).__init__() + super().__init__() def initActions(self): """
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/closehead.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/CloseheadExtension/closehead.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param vcs reference to the Mercurial vcs object @type Hg """ - super(Closehead, self).__init__(vcs) + super().__init__(vcs) def hgCloseheads(self, revisions=None): """
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/ConfigurationPage/MercurialPage.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/ConfigurationPage/MercurialPage.py Sat Apr 10 18:38:27 2021 +0200 @@ -27,7 +27,7 @@ @param plugin reference to the plugin object """ - super(MercurialPage, self).__init__() + super().__init__() self.setupUi(self) self.setObjectName("MercurialPage")
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -27,7 +27,7 @@ @param bookmarksList list of bookmarks (list of strings) @param parent reference to the parent widget (QWidget) """ - super(HgGpgSignDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param vcs reference to the vcs object @param parent reference to the parent widget (QWidget) """ - super(HgGpgSignaturesDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/ProjectHelper.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/ProjectHelper.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ """ Constructor """ - super(GpgProjectHelper, self).__init__() + super().__init__() def initActions(self): """
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/gpg.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/gpg.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param vcs reference to the Mercurial vcs object """ - super(Gpg, self).__init__(vcs) + super().__init__(vcs) self.gpgSignaturesDialog = None
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgAddSubrepositoryDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgAddSubrepositoryDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param projectPath project directory name (string) @param parent reference to the parent widget (QWidget) """ - super(HgAddSubrepositoryDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.pathPicker.setMode(E5PathPickerModes.DirectoryMode)
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgAnnotateDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -30,7 +30,7 @@ @param vcs reference to the vcs object @param parent parent widget (QWidget) """ - super(HgAnnotateDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgArchiveDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgArchiveDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -28,7 +28,7 @@ @param vcs reference to the Mercurial object (Hg) @param parent reference to the parent widget (QWidget) """ - super(HgArchiveDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.archivePicker.setMode(
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgBackoutDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgBackoutDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -27,7 +27,7 @@ @param bookmarksList list of bookmarks (list of strings) @param parent parent widget (QWidget) """ - super(HgBackoutDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarkDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarkDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param bookmarksList list of bookmarks (list of strings) @param parent reference to the parent widget (QWidget) """ - super(HgBookmarkDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarkRenameDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarkRenameDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -24,7 +24,7 @@ @param bookmarksList list of bookmarks (list of strings) @param parent reference to the parent widget (QWidget) """ - super(HgBookmarkRenameDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksInOutDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksInOutDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param parent reference to the parent widget (QWidget) @exception ValueError raised to indicate an invalid dialog mode """ - super(HgBookmarksInOutDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksListDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksListDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -32,7 +32,7 @@ @param vcs reference to the vcs object @param parent parent widget (QWidget) """ - super(HgBookmarksListDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.setWindowFlags(Qt.WindowType.Window)
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgBranchInputDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgBranchInputDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -25,7 +25,7 @@ (list of string) @param parent reference to the parent widget (QWidget) """ - super(HgBranchInputDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.branchComboBox.addItems(sorted(branches))
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgBundleDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgBundleDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -33,7 +33,7 @@ @param parent parent widget @type QWidget """ - super(HgBundleDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgClient.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgClient.py Sat Apr 10 18:38:27 2021 +0200 @@ -42,7 +42,7 @@ @param parent reference to the parent object @type QObject """ - super(HgClient, self).__init__(parent) + super().__init__(parent) self.__server = None self.__started = False
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgClientPromptDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgClientPromptDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -26,7 +26,7 @@ @param message message sent by the server (string) @param parent reference to the parent widget (QWidget) """ - super(HgClientPromptDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.buttonBox.button(
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgCommandDialog.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgCommandDialog.py Sat Apr 10 18:38:27 2021 +0200 @@ -31,7 +31,7 @@ @param ppath pathname of the project directory (string) @param parent parent widget of this dialog (QWidget) """ - super(HgCommandDialog, self).__init__(parent) + super().__init__(parent) self.setupUi(self) self.okButton = self.buttonBox.button(