#NEWLINE# def updateRepoForOrg( org , labNumber , githubUserObject , githubTeamObject , firstName , lastName , githubid , csil ) : #NEWLINE# #INDENT# addPyGithubToPath ( ) #NEWLINE# from github import GithubException #NEWLINE# desc = formatRepoDesc ( labNumber , firstName , lastName ) #NEWLINE# repoName = ( ( labNumber + '_' ) + githubid ) #NEWLINE# try : #NEWLINE# #INDENT# repo = org . get_repo ( repoName ) #NEWLINE# repo . edit ( repoName , description = desc , homepage = ( 'http://www.cs.ucsb.edu/~' + csil ) ) #NEWLINE# print ( ( 'Updated repo ' + repoName ) ) #NEWLINE# return True #NEWLINE# #UNINDENT# except GithubException as e : #NEWLINE# #INDENT# print ( ( ( ( 'Error editing repo: ' + repoName ) + ' : ' ) + e ) ) #NEWLINE# #UNINDENT# return False