mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Remove the notion of ImmediateCompletion
This commit is contained in:
@@ -6,13 +6,11 @@ from GithubObject import *
|
||||
import NamedUser
|
||||
|
||||
class PullRequestComment( object ):
|
||||
def __init__( self, requester, attributes, completion ):
|
||||
def __init__( self, requester, attributes, completed ):
|
||||
self.__requester = requester
|
||||
self.__initAttributes()
|
||||
self.__useAttributes( attributes )
|
||||
self.__completed = completion != LazyCompletion
|
||||
if completion == ImmediateCompletion:
|
||||
self.__complete() # pragma: no cover
|
||||
self.__completed = completed
|
||||
|
||||
@property
|
||||
def body( self ):
|
||||
@@ -150,4 +148,4 @@ class PullRequestComment( object ):
|
||||
self.__url = attributes[ "url" ]
|
||||
if "user" in attributes and attributes[ "user" ] is not None: # pragma no branch
|
||||
assert isinstance( attributes[ "user" ], dict ), attributes[ "user" ]
|
||||
self.__user = NamedUser.NamedUser( self.__requester, attributes[ "user" ], completion = LazyCompletion )
|
||||
self.__user = NamedUser.NamedUser( self.__requester, attributes[ "user" ], completed = False )
|
||||
|
||||
Reference in New Issue
Block a user