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
+17 -17
View File
@@ -26,6 +26,23 @@ class GitRef( object ):
self.__completeIfNeeded( self.__url )
return self.__url
def delete( self ):
pass
def edit( self, sha, force = None ):
post_parameters = {
"sha": sha,
}
if force is not None:
post_parameters[ "force" ] = force
result = self.__github._dataRequest(
"PATCH",
"https://api.github.com/user",
None,
post_parameters
)
self.__useAttributes( result )
def __initAttributes( self ):
self.__object = None
self.__ref = None
@@ -46,23 +63,6 @@ class GitRef( object ):
self.__useAttributes( result )
self.__completed = True
def delete( self ):
pass
def edit( self, sha, force = None ):
post_parameters = {
"sha": sha,
}
if force is not None:
post_parameters[ "force" ] = force
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 "object" in attributes: