From d861668bc1dfe7098ceca0cfd7db44eb7c267987 Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 22 Dec 2020 18:10:03 +0100 Subject: [PATCH] [models] Update CustomFields with items() method --- legendary/models/manifest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/legendary/models/manifest.py b/legendary/models/manifest.py index 2f88796..89b0d9c 100644 --- a/legendary/models/manifest.py +++ b/legendary/models/manifest.py @@ -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()