Skip to content

Commit

Permalink
Factor out file_size
Browse files Browse the repository at this point in the history
  • Loading branch information
rm-hull committed Jan 27, 2017
1 parent 0398ccb commit 467e009
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion luma/core/emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ def write_animation(self):
append_images=self._images[1:],
optimize=True, format="GIF")

file_size = os.stat(self._filename).st_size
logger.debug("Wrote {0} frames to file: {1} ({2} bytes)".format(
len(self._images), self._filename, os.stat(self._filename).st_size))
self._count, self._filename, file_size))


class pygame(emulator):
Expand Down

0 comments on commit 467e009

Please sign in to comment.