Fix history_orig_len by defaulting to 0

This commit is contained in:
Anthony Sottile
2019-11-30 16:30:01 -08:00
parent 26d3c0826c
commit 3956349d20

View File

@@ -206,7 +206,7 @@ class Status:
self._status = ''
self._action_counter = -1
self._history: Dict[str, List[str]] = collections.defaultdict(list)
self._history_orig_len: Dict[str, int] = {}
self._history_orig_len: Dict[str, int] = collections.defaultdict(int)
@contextlib.contextmanager
def save_history(self) -> Generator[None, None, None]: