Home | History | Annotate | Download | only in Lib

Lines Matching refs:ofp

82     def __init__(self, ofp):
83 self.ofp = ofp
103 self.ofp.write(self.hqxdata[first:last] + b'\n')
108 self.ofp.write(self.hqxdata + b':\n')
114 self.ofp.close()
115 del self.ofp
120 def __init__(self, ofp):
121 self.ofp = ofp
129 self.ofp.write(rledata)
135 self.ofp.write(rledata)
136 self.ofp.close()
137 del self.ofp
140 def __init__(self, name_finfo_dlen_rlen, ofp):
143 if isinstance(ofp, str):
144 ofname = ofp
145 ofp = io.open(ofname, 'wb')
148 ofp.write(b'(This file must be converted with BinHex 4.0)\r\r:')
149 hqxer = _Hqxcoderengine(ofp)
150 self.ofp = _Rlecoderengine(hqxer)
160 ofp.close()
184 self.ofp.write(data)
193 self.ofp.write(struct.pack(fmt, self.crc))
229 ofp = self.ofp
230 del self.ofp
231 ofp.close()
236 ofp = BinHex(finfo, out)
243 ofp.write(d)
244 ofp.close_data()
250 ofp.write_rsrc(d)
251 ofp.close()
461 with io.open(out, 'wb') as ofp:
466 ofp.write(d)
471 ofp = openrsrc(out, 'wb')
472 ofp.write(d)
476 ofp.write(d)
477 ofp.close()