eric6/WebBrowser/CookieJar/CookieExceptionsModel.py

changeset 8235
78e6d29eb773
parent 8218
7c09585bd960
--- a/eric6/WebBrowser/CookieJar/CookieExceptionsModel.py	Tue Apr 13 18:02:59 2021 +0200
+++ b/eric6/WebBrowser/CookieJar/CookieExceptionsModel.py	Tue Apr 13 19:59:17 2021 +0200
@@ -234,10 +234,7 @@
         
         # Avoid to have similar rules (with or without leading dot)
         # e.g. python-projects.org and .python-projects.org
-        if host.startswith("."):
-            otherRule = host[1:]
-        else:
-            otherRule = '.' + host
+        otherRule = host[1:] if host.startswith(".") else '.' + host
         if otherRule in addList:
             addList.remove(otherRule)
         if otherRule in removeList1:

eric ide

mercurial