eric6/WebBrowser/CookieJar/CookieExceptionsModel.py

changeset 8235
78e6d29eb773
parent 8218
7c09585bd960
equal deleted inserted replaced
8234:fcb6b4b96274 8235:78e6d29eb773
232 if host in removeList2: 232 if host in removeList2:
233 removeList2.remove(host) 233 removeList2.remove(host)
234 234
235 # Avoid to have similar rules (with or without leading dot) 235 # Avoid to have similar rules (with or without leading dot)
236 # e.g. python-projects.org and .python-projects.org 236 # e.g. python-projects.org and .python-projects.org
237 if host.startswith("."): 237 otherRule = host[1:] if host.startswith(".") else '.' + host
238 otherRule = host[1:]
239 else:
240 otherRule = '.' + host
241 if otherRule in addList: 238 if otherRule in addList:
242 addList.remove(otherRule) 239 addList.remove(otherRule)
243 if otherRule in removeList1: 240 if otherRule in removeList1:
244 removeList1.remove(otherRule) 241 removeList1.remove(otherRule)
245 if otherRule in removeList2: 242 if otherRule in removeList2:

eric ide

mercurial