Remove the notion of ImmediateCompletion

This commit is contained in:
Vincent Jacques
2012-05-30 19:00:37 +02:00
parent 7a622975d6
commit 12d427464f
48 changed files with 189 additions and 227 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ from GithubObject import *
import GitTreeElement
class GitTree( object ):
def __init__( self, requester, attributes, completion ):
def __init__( self, requester, attributes, completed ):
self.__requester = requester
self.__initAttributes()
self.__useAttributes( attributes )
@@ -35,7 +35,7 @@ class GitTree( object ):
if "tree" in attributes and attributes[ "tree" ] is not None: # pragma no branch
assert all( isinstance( element, dict ) for element in attributes[ "tree" ] ), attributes[ "tree" ]
self.__tree = [
GitTreeElement.GitTreeElement( self.__requester, element, completion = LazyCompletion )
GitTreeElement.GitTreeElement( self.__requester, element, completed = False )
for element in attributes[ "tree" ]
]
if "url" in attributes and attributes[ "url" ] is not None: # pragma no branch