--- a/eric6/Plugins/ViewManagerPlugins/Listspace/Listspace.py Sat Sep 21 22:03:03 2019 +0200 +++ b/eric6/Plugins/ViewManagerPlugins/Listspace/Listspace.py Mon Sep 23 19:10:42 2019 +0200 @@ -11,8 +11,10 @@ import os from PyQt5.QtCore import pyqtSignal, pyqtSlot, QFileInfo, QEvent, Qt -from PyQt5.QtWidgets import QStackedWidget, QSplitter, QListWidget, \ - QListWidgetItem, QSizePolicy, QMenu, QApplication +from PyQt5.QtWidgets import ( + QStackedWidget, QSplitter, QListWidget, QListWidgetItem, QSizePolicy, + QMenu, QApplication +) from ViewManager.ViewManager import ViewManager @@ -791,8 +793,10 @@ Private method to close the other editors. """ index = self.contextMenuIndex - for i in list(range(self.viewlist.count() - 1, index, -1)) + \ - list(range(index - 1, -1, -1)): + for i in ( + list(range(self.viewlist.count() - 1, index, -1)) + + list(range(index - 1, -1, -1)) + ): editor = self.editors[i] self.closeEditorWindow(editor) @@ -895,8 +899,10 @@ @return flag indicating, if we handled the event @rtype bool """ - if event.type() == QEvent.MouseButtonPress and \ - not event.button() == Qt.RightButton: + if ( + event.type() == QEvent.MouseButtonPress and + not event.button() == Qt.RightButton + ): switched = True if isinstance(watched, QStackedWidget): switched = watched is not self.currentStack