#NEWLINE# def _dump_json( self , output_path ) : #NEWLINE# #INDENT# with open ( output_path , 'w' ) as fp : #NEWLINE# #INDENT# serializable_manifest = dict ( ) #NEWLINE# serializable_manifest [ 'url' ] = self . manifest . url #NEWLINE# serializable_manifest [ 'branch' ] = self . manifest . branch #NEWLINE# serializable_manifest [ 'groups' ] = to_dump . manifest . groups #NEWLINE# if self . manifest . ref : #NEWLINE# #INDENT# serializable_manifest [ 'ref' ] = self . manifest . ref #NEWLINE# #UNINDENT# to_dump = { #NEWLINE# #INDENT# 'format' : 2 , #NEWLINE# 'manifest' : serializable_manifest , #NEWLINE# 'refs' : self . refs , #NEWLINE# #UNINDENT# } #NEWLINE# json . dump ( to_dump , fp , indent = 2 )