From aa01996f8cff56a3b4dbe01a9f3c0107fe1bf835 Mon Sep 17 00:00:00 2001 From: Mateo13 Date: Wed, 11 Nov 2015 10:40:37 -0500 Subject: [PATCH] Changed map to list comprehension for python3 compatibility. --- scapy/contrib/cdp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/contrib/cdp.py b/scapy/contrib/cdp.py index 12794c7..ed33616 100644 --- a/scapy/contrib/cdp.py +++ b/scapy/contrib/cdp.py @@ -184,7 +184,7 @@ class CDPMsgPortID(CDPMsgGeneric): "Switch", "Host", "IGMPCapable", - "Repeater"] + map(lambda x: "Bit%d" % x, range(25,0,-1)) + "Repeater"] + ["Bit%d" % x for x in range(25,0,-1)] class CDPMsgCapabilities(CDPMsgGeneric):