def load(self, stream):

        # For the time being only accept file input streams
        if type(stream) is not file:
            raise TypeError,'Argument should be a file object!'
        # Check for the opened mode
        if stream.mode != 'r':
            raise ValueError,'Stream should be opened in read-only mode!'

        try:
            lines = stream.readlines()
            self.__parse(lines)
        except IOError, e:
            raise
List all branches, including closed branches.
dataset/ETHPy150Open GluuFederation/community-edition-setup/Properties.py/Properties.load--crossover with--dataset/ETHPy150Open codeinn/vcs/vcs/backends/hg/repository.py/MercurialRepository.allbranches