git @ Cat's Eye Technologies SixtyPical / 0a91d6b
Rename method for more distinction/clarity. Chris Pressey 3 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
128128 if options.debug:
129129 pprint(emitter.accum)
130130 else:
131 emitter.serialize(fh)
131 emitter.serialize_to(fh)
132132
133133
134134 if __name__ == '__main__':
168168 self.accum.append(thing)
169169 self.addr += thing.size()
170170
171 def serialize(self, stream):
171 def serialize_to(self, stream):
172172 """`stream` should be a file opened in binary mode."""
173173 addr = self.start_addr
174174 for emittable in self.accum: