From c41606473ee3c47155977a0aa6ba85281bbe23ae Mon Sep 17 00:00:00 2001 From: gpotter2 <gabriel@potter.fr> Date: Wed, 26 Jul 2017 19:36:10 +0200 Subject: [PATCH] Fix config prints --- scapy/layers/tls/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/layers/tls/session.py b/scapy/layers/tls/session.py index cf3a5b73..93623d8d 100644 --- a/scapy/layers/tls/session.py +++ b/scapy/layers/tls/session.py @@ -971,7 +971,7 @@ class _tls_sessions(object): if len(sid) > 12: sid = sid[:11] + "..." res.append((src, dst, sid)) - colwidth = map(lambda x: max(map(lambda y: len(y), x)), apply(zip, res)) + colwidth = [max([len(y) for y in x]) for x in zip(*res)] fmt = " ".join(map(lambda x: "%%-%ds"%x, colwidth)) return "\n".join(map(lambda x: fmt % x, res)) -- GitLab