From 0a91d6bbc04609a4703bc045c387ef53a41e0dba Mon Sep 17 00:00:00 2001 From: Chris Pressey Date: Thu, 6 Sep 2018 17:21:43 +0100 Subject: [PATCH] Rename method for more distinction/clarity. --- bin/sixtypical | 2 +- src/sixtypical/emitter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: