def branches(self):
if self.github.get_rate_limit().rate.limit == <NUM_LIT:0>:<EOL><INDENT>raise GithubException<EOL><DEDENT>branches = self.repo.get_branches()<EOL>return [x.name for x in branches]<EOL>
Return a list of branches for given repository

        Raises GithubException if rate limit is exceeded

        :return: [str]