mirror of
https://github.com/derrod/legendary.git
synced 2025-01-03 04:45:28 +00:00
[models] Update CustomFields with items() method
This commit is contained in:
parent
bd0b9248ee
commit
d861668bc1
|
@ -627,7 +627,7 @@ class ChunkPart:
|
|||
guid_readable, self.offset, self.size)
|
||||
|
||||
|
||||
class CustomFields: # this could probably be replaced with just a dict
|
||||
class CustomFields:
|
||||
def __init__(self):
|
||||
self.size = 0
|
||||
self.version = 0
|
||||
|
@ -644,6 +644,9 @@ class CustomFields: # this could probably be replaced with just a dict
|
|||
def __str__(self):
|
||||
return str(self._dict)
|
||||
|
||||
def items(self):
|
||||
return self._dict.items()
|
||||
|
||||
def keys(self):
|
||||
return self._dict.keys()
|
||||
|
||||
|
|
Loading…
Reference in a new issue