Generate code for complex parameters

(+ find bug in Repository.create_commit with parents !)
This commit is contained in:
Vincent Jacques
2012-06-01 19:41:50 +01:00
parent b3fce397c0
commit 8b6d463cd9
13 changed files with 54 additions and 13 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
import GithubObject
class InputGitTreeElement:
class InputGitTreeElement( object ):
def __init__( self, path, mode, type, content = GithubObject.NotSet, sha = GithubObject.NotSet ):
self.__path = path
self.__mode = mode
@@ -8,6 +8,7 @@ class InputGitTreeElement:
self.__content = content
self.__sha = sha
@property
def _identity( self ):
identity = {
"path": self.__path,