1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-06-07 22:29:27 +00:00

Rename method for more distinction/clarity.

This commit is contained in:
Chris Pressey 2018-09-06 17:21:43 +01:00
parent 8efa73f79d
commit 0a91d6bbc0
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ def process_input_files(filenames, options):
if options.debug:
pprint(emitter.accum)
else:
emitter.serialize(fh)
emitter.serialize_to(fh)
if __name__ == '__main__':

View File

@ -169,7 +169,7 @@ class Emitter(object):
self.accum.append(thing)
self.addr += thing.size()
def serialize(self, stream):
def serialize_to(self, stream):
"""`stream` should be a file opened in binary mode."""
addr = self.start_addr
for emittable in self.accum: