Lines Matching refs:ofp
115 def __init__(self, ofp): argument
116 self.ofp = ofp
136 self.ofp.write(self.hqxdata[first:last]+'\n')
141 self.ofp.write(self.hqxdata + ':\n')
148 self.ofp.close()
149 del self.ofp
154 def __init__(self, ofp): argument
155 self.ofp = ofp
163 self.ofp.write(rledata)
169 self.ofp.write(rledata)
170 self.ofp.close()
171 del self.ofp
174 def __init__(self, name_finfo_dlen_rlen, ofp): argument
176 if type(ofp) == type(''):
177 ofname = ofp
178 ofp = open(ofname, 'w')
179 ofp.write('(This file must be converted with BinHex 4.0)\n\n:')
180 hqxer = _Hqxcoderengine(ofp)
181 self.ofp = _Rlecoderengine(hqxer)
206 self.ofp.write(data)
215 self.ofp.write(struct.pack(fmt, self.crc))
252 ofp = self.ofp
253 del self.ofp
254 ofp.close()
259 ofp = BinHex(finfo, out)
266 ofp.write(d)
267 ofp.close_data()
274 ofp.write_rsrc(d)
275 ofp.close()
489 ofp = open(out, 'wb')
494 ofp.write(d)
495 ofp.close()
500 ofp = openrsrc(out, 'wb')
501 ofp.write(d)
505 ofp.write(d)
506 ofp.close()