eric6/WebBrowser/Session/SessionManager.py

changeset 8205
4a0f1f896341
parent 8143
2c730d5fd177
child 8218
7c09585bd960
--- a/eric6/WebBrowser/Session/SessionManager.py	Thu Apr 08 17:27:12 2021 +0200
+++ b/eric6/WebBrowser/Session/SessionManager.py	Thu Apr 08 18:27:47 2021 +0200
@@ -27,7 +27,7 @@
 import Preferences
 
 
-class SessionMetaData(object):
+class SessionMetaData:
     """
     Class implementing a data structure to store meta data for a session.
     """
@@ -417,8 +417,10 @@
                 if win is not window:
                     win.forceClose()
             
-            if not ((flags & SessionManager.ReplaceSession) ==
-                    SessionManager.ReplaceSession):
+            if (
+                (flags & SessionManager.ReplaceSession) !=
+                SessionManager.ReplaceSession
+            ):
                 self.__lastActiveSession = (
                     QFileInfo(sessionFilePath).canonicalFilePath()
                 )

eric ide

mercurial