--- a/eric6/WebBrowser/FlashCookieManager/FlashCookieManager.py Wed Sep 25 18:37:35 2019 +0200 +++ b/eric6/WebBrowser/FlashCookieManager/FlashCookieManager.py Wed Sep 25 18:48:22 2019 +0200 @@ -111,8 +111,9 @@ @return flag indicating a blacklisted cookie @rtype bool """ - return cookie.origin in \ - Preferences.getWebBrowser("FlashCookiesBlacklist") + return ( + cookie.origin in Preferences.getWebBrowser("FlashCookiesBlacklist") + ) def __isWhitelisted(self, cookie): """ @@ -123,8 +124,9 @@ @return flag indicating a whitelisted cookie @rtype bool """ - return cookie.origin in \ - Preferences.getWebBrowser("FlashCookiesWhitelist") + return ( + cookie.origin in Preferences.getWebBrowser("FlashCookiesWhitelist") + ) def __removeAllButWhitelisted(self): """ @@ -150,8 +152,10 @@ @return path of the shared data objects @rtype str """ - if "macromedia" in self.flashPlayerDataPath().lower() or \ - "/.gnash" not in self.flashPlayerDataPath().lower(): + if ( + "macromedia" in self.flashPlayerDataPath().lower() or + "/.gnash" not in self.flashPlayerDataPath().lower() + ): return "/#SharedObjects/" else: return "/SharedObjects/" @@ -186,8 +190,10 @@ """ Private slot to refresh the list of cookies. """ - if self.__flashCookieManagerDialog and \ - self.__flashCookieManagerDialog.isVisible(): + if ( + self.__flashCookieManagerDialog and + self.__flashCookieManagerDialog.isVisible() + ): return oldFlashCookies = self.__flashCookies[:]