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
@@ -54,6 +54,21 @@ class Commit( object ):
self.__completeIfNeeded( self.__url )
return self.__url
def create_comment( self, body, commit_id = None, line = None, path = None, position = None ):
pass
def get_comments( self ):
result = self.__github._dataRequest(
"GET",
self.url + "/comments",
None,
None
)
return [
CommitComment.CommitComment( self.__github, element, lazy = True )
for element in result
]
def __initAttributes( self ):
self.__author = None
self.__commit = None
@@ -79,21 +94,6 @@ class Commit( object ):
self.__useAttributes( result )
self.__completed = True
def create_comment( self, body, commit_id = None, line = None, path = None, position = None ):
pass
def get_comments( self ):
result = self.__github._dataRequest(
"GET",
self.url + "/comments",
None,
None
)
return [
CommitComment.CommitComment( self.__github, element, lazy = True )
for element in result
]
def __useAttributes( self, attributes ):
#@todo No need to check if attribute is in attributes when attribute is mandatory
if "author" in attributes: