Fix version being taken from class fields instead of instance fields

This commit is contained in:
Dan 2020-11-27 14:12:49 +01:00
parent fa820328c3
commit 786235f316

View File

@ -335,8 +335,8 @@ class FileId:
) )
def encode(self, *, major: int = None, minor: int = None): def encode(self, *, major: int = None, minor: int = None):
major = major if major is not None else self.MAJOR major = major if major is not None else self.major
minor = minor if minor is not None else self.MINOR minor = minor if minor is not None else self.minor
buffer = BytesIO() buffer = BytesIO()