mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Put private methods after public ones
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user