commit | 9797b7ae4496627836c55333765e10201a9840e3 | [log] [tgz] |
---|---|---|
author | Berker Peksag <berker.peksag@gmail.com> | Mon Sep 10 20:02:33 2018 +0300 |
committer | Petr Viktorin <encukou@gmail.com> | Mon Sep 10 10:02:33 2018 -0700 |
tree | dfe7d46da87ad6c308bb088ef6cc2a50c746c49e | |
parent | 0e0bc4e221f592f305d335faf5f8046484eb9238 [diff] [blame] |
bpo-26502: Implement FrameSummary.__len__() (GH-8632)
diff --git a/Lib/traceback.py b/Lib/traceback.py index 4e7605d..ab35da9 100644 --- a/Lib/traceback.py +++ b/Lib/traceback.py
@@ -279,6 +279,9 @@ return "<FrameSummary file {filename}, line {lineno} in {name}>".format( filename=self.filename, lineno=self.lineno, name=self.name) + def __len__(self): + return 4 + @property def line(self): if self._line is None: