#NEWLINE# def write( self , arg , **kwargs ) : #NEWLINE# #INDENT# 'Write instance to file.' #NEWLINE# if hasattr ( arg , 'seek' ) : #NEWLINE# #INDENT# self . _tofile ( arg , ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# with open ( arg , 'wb' ) as fid : #NEWLINE# #INDENT# self . _tofile ( fid , ** kwargs )