summaryrefslogtreecommitdiff
path: root/Lib/traceback.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2018-09-10 20:02:33 +0300
committerPetr Viktorin <encukou@gmail.com>2018-09-10 10:02:33 -0700
commit9797b7ae4496627836c55333765e10201a9840e3 (patch)
treedfe7d46da87ad6c308bb088ef6cc2a50c746c49e /Lib/traceback.py
parent0e0bc4e221f592f305d335faf5f8046484eb9238 (diff)
downloadcpython-git-9797b7ae4496627836c55333765e10201a9840e3.tar.gz
bpo-26502: Implement FrameSummary.__len__() (GH-8632)
Diffstat (limited to 'Lib/traceback.py')
-rw-r--r--Lib/traceback.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/traceback.py b/Lib/traceback.py
index 4e7605d15f..ab35da94b5 100644
--- a/Lib/traceback.py
+++ b/Lib/traceback.py
@@ -279,6 +279,9 @@ class FrameSummary:
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: