diff options
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r-- | Lib/traceback.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py index 09bda717ad..fb3bce12a1 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py @@ -253,8 +253,7 @@ class FrameSummary: self._line = line if lookup_line: self.line - self.locals = \ - dict((k, repr(v)) for k, v in locals.items()) if locals else None + self.locals = {k: repr(v) for k, v in locals.items()} if locals else None def __eq__(self, other): if isinstance(other, FrameSummary): |