Reconciliate generated code with shipped code

(no impact on shipped code, only re-ordering)
This commit is contained in:
Vincent Jacques
2012-09-07 23:48:43 +02:00
parent ece857f70e
commit 8f184d93af
10 changed files with 253 additions and 84 deletions
+9 -9
View File
@@ -1002,15 +1002,6 @@ class Repository( GithubObject.GithubObject ):
)
return status == 204
def remove_from_collaborators( self, collaborator ):
assert isinstance( collaborator, NamedUser.NamedUser ), collaborator
headers, data = self._requester.requestAndCheck(
"DELETE",
self.url + "/collaborators/" + collaborator._identity,
None,
None
)
def legacy_search_issues( self, state, keyword ):
assert state in [ "open", "closed" ], state
assert isinstance( keyword, ( str, unicode ) ), keyword
@@ -1025,6 +1016,15 @@ class Repository( GithubObject.GithubObject ):
for element in data[ "issues" ]
]
def remove_from_collaborators( self, collaborator ):
assert isinstance( collaborator, NamedUser.NamedUser ), collaborator
headers, data = self._requester.requestAndCheck(
"DELETE",
self.url + "/collaborators/" + collaborator._identity,
None,
None
)
@property
def _identity( self ):
return self.owner.login + "/" + self.name