Moved pad_up_4() to inner function as it's only used there.
This commit is contained in:
parent
55075c09b6
commit
aed1827ff7
@ -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 = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user