Commit 543d3f7
authored
[doc] Results.plot callback receive 2 args: (query,answer) (#4764)
Fixes:
```python
>>> a.plot(lambda x:x[1].id)
File /home/isidro/ms/webserver/venv/lib/python3.13/site-packages/scapy/plist.py:288, in _PacketList.plot(self, f, lfilter, plot_xy, **kargs)
286 # Get the list of packets
287 if lfilter is None:
--> 288 lst_pkts = [f(*e) for e in self.res]
289 else:
290 lst_pkts = [f(*e) for e in self.res if lfilter(*e)]
TypeError: <lambda>() takes 1 positional argument but 2 were given
```1 parent 163c4bc commit 543d3f7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
1124 | | - | |
| 1124 | + | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | 1127 | | |
| |||
0 commit comments