diff options
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r-- | Lib/traceback.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index 8f908dd..7a7cca1 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -84,8 +84,11 @@ _context_message = ( "another exception occurred:\n\n") -_sentinel = object() +class _Sentinel: + def __repr__(self): + return "<implicit>" +_sentinel = _Sentinel() def _parse_value_tb(exc, value, tb): if (value is _sentinel) != (tb is _sentinel): |