(cls, fname)
return names
Reads a file of names for --keep-names-from-file.

        Names are one per line. Empty lines and lines whose first non-blank
        character is '#' are ignored.

        Returns: Set of names.
Reads a file of names for --keep-names-from-file.
Reads a file of names for -- keep - names - from - file .
def read_names_file(cls, fname):
        """Reads a file of names for --keep-names-from-file.

        Names are one per line. Empty lines and lines whose first non-blank
        character is '#' are ignored.

        Returns: Set of names.
        """
        names = set()
        with open(fname, 'rb') as fh:
            for line in fh:
                line = line.strip()
                if not line or line.startswith(b'#'):
                    continue
                names.add(line)
        return names
def read_names_file ( cls , fname ) : names = set ( ) with open ( fname , 'rb' ) as fh : for line in fh : line = line . strip ( ) if not line or line . startswith ( b'#' ) : continue names . add ( line ) return names