src/eric7/WebBrowser/AdBlock/AdBlockSubscription.py

branch
eric7
changeset 9328
49a0a9cb2505
parent 9221
bf71ee032bb4
child 9413
80c06d472826
equal deleted inserted replaced
9327:2b768afcaee1 9328:49a0a9cb2505
510 @rtype bool 510 @rtype bool
511 """ 511 """
512 try: 512 try:
513 with open(fileName, "r", encoding="utf-8") as f: 513 with open(fileName, "r", encoding="utf-8") as f:
514 data = f.read() 514 data = f.read()
515 except (OSError, OSError): 515 except OSError:
516 return False 516 return False
517 517
518 match = re.search(self.__checksumRe, data) 518 match = re.search(self.__checksumRe, data)
519 if match: 519 if match:
520 expectedChecksum = match.group(1) 520 expectedChecksum = match.group(1)

eric ide

mercurial