Skip to content

Commit

Permalink
Merge pull request #30 from Mateo13/master
Browse files Browse the repository at this point in the history
Changed map to list comprehension for python3 compatibility.
  • Loading branch information
phaethon committed Nov 11, 2015
2 parents b1d2fc0 + aa01996 commit 0cc599c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scapy/contrib/cdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0cc599c

Please sign in to comment.