def process_file(filename):
 try:
  checksum_errors = verify_checksums(filename)
  if OPTIONS.compliance:
   compliance_errors = verify_compliance(filename)
  else:
   compliance_errors = 0
  if ((OPTIONS.write_file and (checksum_errors == 0)) or OPTIONS.force):
   update(filename)
  return (checksum_errors + compliance_errors)
 except Exception as e:
  log.error('EXCEPTION {!r} .. {}'.format(filename, e))
  return 1

def process_file ( filename ) : try : checksum_errors = verify_checksums ( filename ) if OPTIONS . compliance : compliance_errors = verify_compliance ( filename ) else : compliance_errors = 0 if ( ( OPTIONS . write_file and ( checksum_errors == 0 ) ) or OPTIONS . force ) : update ( filename ) return ( checksum_errors + compliance_errors ) except Exception as e : log . error ( 'EXCEPTION {!r} .. {}' . format ( filename , e ) ) return 1
handle a single .