def make_commit(**attrs):
 default_time = int(time.mktime(datetime.datetime(2010, 1, 1).timetuple()))
 all_attrs = {'author': 'Test Author <test@nodomain.com>', 'author_time': default_time, 'author_timezone': 0, 'committer': 'Test Committer <test@nodomain.com>', 'commit_time': default_time, 'commit_timezone': 0, 'message': 'Test message.', 'parents': [], 'tree': ('0' * 40)}
 all_attrs.update(attrs)
 return make_object(Commit, **all_attrs)

def make_commit ( ** attrs ) : default_time = int ( time . mktime ( datetime . datetime ( 2010 , 1 , 1 ) . timetuple ( ) ) ) all_attrs = { 'author' : 'Test Author <test@nodomain.com>' , 'author_time' : default_time , 'author_timezone' : 0 , 'committer' : 'Test Committer <test@nodomain.com>' , 'commit_time' : default_time , 'commit_timezone' : 0 , 'message' : 'Test message.' , 'parents' : [ ] , 'tree' : ( '0' * 40 ) } all_attrs . update ( attrs ) return make_object ( Commit , ** all_attrs )
make a commit object with a default set of members .