mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 11:51:10 +00:00
Only one class per file
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
# Do not modify it manually, your work would be lost.
|
||||
|
||||
import PaginatedList
|
||||
from GithubObject import *
|
||||
import GithubException
|
||||
from DefaultValueForOptionalParameters import DefaultValueForOptionalParameters
|
||||
import NamedUser
|
||||
|
||||
class GistComment( object ):
|
||||
@@ -43,7 +44,7 @@ class GistComment( object ):
|
||||
None
|
||||
)
|
||||
if self.__requester.isFailureStatus( status ): # pragma no branch
|
||||
raise GithubException( status, data ) # pragma no cover
|
||||
raise GithubException.GithubException( status, data ) # pragma no cover
|
||||
|
||||
def edit( self, body ):
|
||||
assert isinstance( body, ( str, unicode ) ), body
|
||||
@@ -57,7 +58,7 @@ class GistComment( object ):
|
||||
post_parameters
|
||||
)
|
||||
if self.__requester.isFailureStatus( status ): # pragma no branch
|
||||
raise GithubException( status, data ) # pragma no cover
|
||||
raise GithubException.GithubException( status, data ) # pragma no cover
|
||||
self.__useAttributes( data )
|
||||
|
||||
def __initAttributes( self ):
|
||||
|
||||
Reference in New Issue
Block a user