#NEWLINE# def finalize( self , ctx , shard_state ) : #NEWLINE# #INDENT# 'See parent class.' #NEWLINE# filenames = [ ] #NEWLINE# for filehandle in self . _filehandles : #NEWLINE# #INDENT# filenames . append ( filehandle . name ) #NEWLINE# filehandle . close ( ) #NEWLINE# #UNINDENT# shard_state . writer_state = { #NEWLINE# #INDENT# 'shard_filenames' : filenames , #NEWLINE# #UNINDENT# }