Skip to content
Snippets Groups Projects
Commit cf00a5de authored by guedou's avatar guedou
Browse files

Merge pull request #3 from p-l-/fix-PacketListField

Fix PacketListField.do_copy() to work w/ strings elements
parents ae82f919 46e4ebff
No related branches found
No related tags found
No related merge requests found
...@@ -418,7 +418,7 @@ class PacketListField(PacketField): ...@@ -418,7 +418,7 @@ class PacketListField(PacketField):
if x is None: if x is None:
return None return None
else: else:
return map(lambda p:p.copy(), x) return [p if isinstance(p, basestring) else p.copy() for p in x]
def getfield(self, pkt, s): def getfield(self, pkt, s):
c = l = None c = l = None
if self.length_from is not None: if self.length_from is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment