Moved pad_up_4() to inner function as it's only used there.

This commit is contained in:
Sybren A. Stüvel 2018-02-23 15:44:57 +01:00
parent 55075c09b6
commit aed1827ff7

View File

@ -39,10 +39,6 @@ BLENDFILE_MAGIC = b'BLENDER'
GZIP_MAGIC = b'\x1f\x8b'
def pad_up_4(offset):
return (offset + 3) & ~3
class BlendFile:
"""Representation of a blend file.
@ -209,6 +205,9 @@ class BlendFile:
intstruct = endian.UINT
assert intstruct.size == 4
def pad_up_4(off: int) -> int:
return (off + 3) & ~3
data = self.fileobj.read(block.size)
types = []
typenames = []