--- a/eric6/WebBrowser/SiteInfo/SiteInfoWidget.py Wed Sep 25 18:48:22 2019 +0200 +++ b/eric6/WebBrowser/SiteInfo/SiteInfoWidget.py Wed Sep 25 18:52:40 2019 +0200 @@ -9,8 +9,10 @@ from PyQt5.QtCore import pyqtSlot, Qt, QPoint -from PyQt5.QtWidgets import QMenu, QGridLayout, QHBoxLayout, QLabel, QFrame, \ - QSizePolicy, QPushButton, QSpacerItem +from PyQt5.QtWidgets import ( + QMenu, QGridLayout, QHBoxLayout, QLabel, QFrame, QSizePolicy, QPushButton, + QSpacerItem +) import UI.PixmapCache @@ -110,10 +112,13 @@ page = self.__browser.page() scheme = page.registerProtocolHandlerRequestScheme() - registeredUrl = WebBrowserWindow.protocolHandlerManager()\ - .protocolHandler(scheme) - if bool(scheme) and \ - registeredUrl != page.registerProtocolHandlerRequestUrl(): + registeredUrl = ( + WebBrowserWindow.protocolHandlerManager().protocolHandler(scheme) + ) + if ( + bool(scheme) and + registeredUrl != page.registerProtocolHandlerRequestUrl() + ): horizontalLayout = QHBoxLayout() protocolHandlerLabel = QLabel( self.tr("Register as <b>{0}</b> links handler.")