eric6/WebBrowser/CookieJar/CookieJar.py

changeset 7268
a28338eaf694
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/WebBrowser/CookieJar/CookieJar.py	Wed Sep 25 18:37:35 2019 +0200
+++ b/eric6/WebBrowser/CookieJar/CookieJar.py	Wed Sep 25 18:48:22 2019 +0200
@@ -217,8 +217,10 @@
             if res:
                 return False
         
-        if self.__acceptCookies == self.AcceptOnlyFromSitesNavigatedTo and \
-           request.thirdParty:
+        if (
+            self.__acceptCookies == self.AcceptOnlyFromSitesNavigatedTo and
+            request.thirdParty
+        ):
             return False
         
         return True
@@ -433,9 +435,11 @@
                     return True
             else:
                 domainEnding = domain[-(len(rule) + 1):]
-                if domainEnding and \
-                   domainEnding[0] == "." and \
-                   domain.endswith(rule):
+                if (
+                    domainEnding and
+                    domainEnding[0] == "." and
+                    domain.endswith(rule)
+                ):
                     return True
                 
                 if rule == domain:

eric ide

mercurial