def commit(self, commit):
try:<EOL><INDENT>return self._commitData(self.repo.get_commit(commit))<EOL><DEDENT>except (ValueError, KeyError, GithubException):<EOL><INDENT>raise KeyError("<STR_LIT>" % commit)<EOL><DEDENT>
Get data for a given commit

        Raises KeyError if a commit is not found or not parsed.

        :param commit: repository commit
        :type  commit: string