From 0ce6484e604bd1811b85ebbc5aabb7e101013fb4 Mon Sep 17 00:00:00 2001 From: zyb Date: Sat, 20 Jul 2024 07:04:19 +0800 Subject: [PATCH] modified: npk.py --- npk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npk.py b/npk.py index 45a0270..abf790b 100644 --- a/npk.py +++ b/npk.py @@ -105,11 +105,11 @@ class NpkInfo: class NpkNameInfo(NpkInfo): _format = '<16s4sI12s' - def __init__(self,name:str,version:str,build_time=datetime.now(),_unknow=b'\x00'*12): + def __init__(self,name:str,version:str,build_time=datetime.now(),unknow=b'\x00'*12): self._name = name[:16].encode().ljust(16,b'\x00') self._version = self.encode_version(version) self._build_time = int(build_time.timestamp()) - self._unknow = _unknow + self._unknow = unknow def serialize(self)->bytes: return struct.pack(self._format, self._name,self._version,self._build_time,self._unknow) @staticmethod