chrome/tools/build/mac/verify_order.py
def parse_order_file(filename):
  """Parses a file containing symbols like passed to ld64's -order_file.

  Doesn't support arch or object file prefixes.
  """
  strip_comments = re.compile('#.*$')
  symbols = [strip_comments.sub('', line).strip() for line in open(filename)]
  symbols = list(filter(None, symbols))
  if has_duplicates(symbols):
    print('order file "%s" contains duplicate symbols' % filename,
          file=sys.stderr)
    sys.exit(1)
  return symbols
Parses a file containing symbols like passed to ld64's -order_file.

  Doesn't support arch or object file prefixes.
  
Parses a file containing symbols like passed to ld64's -order_file.
Doesn't support arch or object file prefixes.
Parses a file containing symbols like passed to ld64 ' s - order_file . Doesn ' t support arch or object file prefixes .
def parse_order_file(filename):
  strip_comments = re.compile('#.*$')
  symbols = [strip_comments.sub('', line).strip() for line in open(filename)]
  symbols = list(filter(None, symbols))
  if has_duplicates(symbols):
    print('order file "%s" contains duplicate symbols' % filename,
          file=sys.stderr)
    sys.exit(1)
  return symbols
def parse_order_file ( filename ) : strip_comments = re . compile ( '#.*$' ) symbols = [ strip_comments . sub ( '' , line ) . strip ( ) for line in open ( filename ) ] symbols = list ( filter ( None , symbols ) ) if has_duplicates ( symbols ) : print ( 'order file "%s" contains duplicate symbols' % filename , file = sys . stderr ) sys . exit ( 1 ) return symbols
Parses a file containing symbols like passed to ld64's -order_file.
Parses a file containing symbols like passed to ld64 ' s - order_file .
"""Parses a file containing symbols like passed to ld64's -order_file.

  Doesn't support arch or object file prefixes.
  """
filename