def todict(self):
        '''
        Returns a pretty dictionary meant for command line output.
        '''
        return {
            'Source port': self.srcport,
            'Destination port': self.destport,
            'Protocol': self.protocol,
            'Destination address': self.destaddr}
def todict ( self ) : return { 'Source port' : self . srcport , 'Destination port' : self . destport , 'Protocol' : self . protocol , 'Destination address' : self . destaddr }
Returns a pretty dictionary meant for command line output.