mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Fix version being taken from class fields instead of instance fields
This commit is contained in:
parent
fa820328c3
commit
786235f316
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue