diff --git a/bin/sixtypical b/bin/sixtypical index cbaf1e3..0416311 100755 --- a/bin/sixtypical +++ b/bin/sixtypical @@ -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__': diff --git a/src/sixtypical/emitter.py b/src/sixtypical/emitter.py index 59d98fb..d4434e5 100644 --- a/src/sixtypical/emitter.py +++ b/src/sixtypical/emitter.py @@ -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: