From 237fe5910d4a941824a22c57930a2f8c287d2ccf Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 21 Aug 2008 08:58:32 -0600 Subject: [PATCH] A few trivial cosmetic changes --- __init__.py | 2 -- ip.py | 21 +++++++++++---------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/__init__.py b/__init__.py index a291431..3bd50cd 100755 --- a/__init__.py +++ b/__init__.py @@ -207,8 +207,6 @@ def unhex(s): def pp(value, bits=16): - if type(value) == type(''): - value, _ = unpack(' %s:%d (%s)' % (self.firstframe.src_addr, - self.firstframe.sport, - self.firstframe.dst_addr, - self.firstframe.dport, - time.ctime(self.firstframe.time)) + print ' %s:%d -> %s:%d (%s.%06dZ)' % (self.firstframe.src_addr, + self.firstframe.sport, + self.firstframe.dst_addr, + self.firstframe.dport, + time.strftime('%Y-%m-%dT%T', time.gmtime(self.firstframe.time)), + self.firstframe.time_usec) if self.parts: dl = len(self.parts[-1])