def write(self, fn=None):
fn = fn or self.fn<EOL>if not os.path.exists(os.path.dirname(fn)):<EOL><INDENT>os.makedirs(os.path.dirname(fn))<EOL><DEDENT>f = open(self.fn, '<STR_LIT:rb>')<EOL>b = f.read()<EOL>f.close()<EOL>f = open(fn, '<STR_LIT:wb>')<EOL>f.write(b)<EOL>f.close()<EOL>
copy the zip file from its filename to the given filename.