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) |