eric7/WebBrowser/TabManager/TabManagerWidget.py

branch
eric7
changeset 9158
47c32c123843
parent 8881
54e42bc2437a
--- a/eric7/WebBrowser/TabManager/TabManagerWidget.py	Fri Jun 17 18:08:24 2022 +0200
+++ b/eric7/WebBrowser/TabManager/TabManagerWidget.py	Mon Jun 20 09:46:10 2022 +0200
@@ -21,8 +21,7 @@
     QWidget, QVBoxLayout, QTreeWidget, QTreeWidgetItem, QMenu, QStyle
 )
 
-import EricNetwork
-from EricNetwork import EricTldExtractor
+from EricNetwork import EricTldExtractor, EricNetworkUtilities
 
 from EricWidgets.EricApplication import ericApp
 from EricWidgets.EricClickableLabel import EricClickableLabel
@@ -180,7 +179,7 @@
         if not host:
             return urlString + appendStr
         
-        if useHostName or EricNetwork.isValidAddress(host):
+        if useHostName or EricNetworkUtilities.isValidAddress(host):
             if host.lower().startswith("www."):
                 host = host[4:]
         else:

eric ide

mercurial