diff options
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 84a415e2..6fee5c1d 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -1492,11 +1492,11 @@ class SymbolMapping(collections.abc.Mapping): # type: ignore assert self._symbol_cache is not None return self._symbol_cache.values() - def get(self, value): + def get(self, value, default = None): try: return self[value] except KeyError: - return None + return default class TypeMapping(collections.abc.Mapping): # type: ignore |
