Put private methods after public ones

This commit is contained in:
Vincent Jacques
2012-05-04 12:55:24 +02:00
parent 07af042cf1
commit ce0aa9f34f
22 changed files with 547 additions and 547 deletions
+15 -15
View File
@@ -67,6 +67,21 @@ class PullRequestComment( object ):
self.__completeIfNeeded( self.__user )
return self.__user
def delete( self ):
pass
def edit( self, body ):
post_parameters = {
"body": body,
}
result = self.__github._dataRequest(
"PATCH",
"https://api.github.com/user",
None,
post_parameters
)
self.__useAttributes( result )
def __initAttributes( self ):
self.__body = None
self.__commit_id = None
@@ -95,21 +110,6 @@ class PullRequestComment( object ):
self.__useAttributes( result )
self.__completed = True
def delete( self ):
pass
def edit( self, body ):
post_parameters = {
"body": body,
}
result = self.__github._dataRequest(
"PATCH",
"https://api.github.com/user",
None,
post_parameters
)
self.__useAttributes( result )
def __useAttributes( self, attributes ):
#@todo No need to check if attribute is in attributes when attribute is mandatory
if "body" in attributes: