code: def parse_checksums(checksums_string):
      
      checksums_list = []
      for line in checksums_string.split('\n'):
          try:
              # skip empty lines
              if line == '':
                  continue
  
              checksum, filename = line.split()
              # strip leading ./
              if filename.startswith('./'):
                  filename = filename[2:]
              checksums_list.append({'checksum': checksum, 'file': filename})
          except ValueError:
              logging.debug('Skipping over unexpected checksum line %r', line)
              continue
  
      return checksums_list
docs: Parse a file containing checksums and filenames.