def load(cls, filename, encoding):
        """Load and parse serialized objects, properties, bools from file."""
        if encoding is None:
            encoding = cls.encoding

        with io.open(filename, 'r', encoding=encoding) as fd:
            source = fd.read()

        if cls.normalize_newlines:
            source = source.replace('\r\n', '\n').replace('\r', '\n')
        return cls.loads(source)
def load ( cls , filename , encoding ) : if encoding is None : encoding = cls . encoding with io . open ( filename , 'r' , encoding = encoding ) as fd : source = fd . read ( ) if cls . normalize_newlines : source = source . replace ( '\r\n' , '\n' ) . replace ( '\r' , '\n' ) return cls . loads ( source )
Load and parse serialized objects, properties, bools from file.