summaryrefslogtreecommitdiffstats
path: root/Lib/traceback.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2018-09-10 17:02:33 (GMT)
committerPetr Viktorin <encukou@gmail.com>2018-09-10 17:02:33 (GMT)
commit9797b7ae4496627836c55333765e10201a9840e3 (patch)
treedfe7d46da87ad6c308bb088ef6cc2a50c746c49e /Lib/traceback.py
parent0e0bc4e221f592f305d335faf5f8046484eb9238 (diff)
downloadcpython-9797b7ae4496627836c55333765e10201a9840e3.zip
cpython-9797b7ae4496627836c55333765e10201a9840e3.tar.gz
cpython-9797b7ae4496627836c55333765e10201a9840e3.tar.bz2
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 4e7605d..ab35da9 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: