eric6/Plugins/ViewManagerPlugins/Listspace/Listspace.py

branch
maintenance
changeset 7286
7eb04391adf7
parent 6989
8b8cadf8d7e9
parent 7258
aff39db4dacc
child 7362
028bf21bb5a2
--- a/eric6/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Mon Sep 09 18:52:08 2019 +0200
+++ b/eric6/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Thu Oct 03 11:12:10 2019 +0200
@@ -7,13 +7,14 @@
 Module implementing the listspace viewmanager class.
 """
 
-from __future__ import unicode_literals
 
 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
 
@@ -792,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)
         
@@ -896,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

eric ide

mercurial