(self)
Overload view so we can print out
            sessions in a pretty table.
Overload view so we can print out
            sessions in a pretty table.
Overload view so we can print out sessions in a pretty table .
def view(self):
        """ Overload view so we can print out
            sessions in a pretty table.
        """
        if self.config['verb'].value is 4:
            Setting = namedtuple('Setting', ['Host', 'SessionID'])
            table = []
            for i in self.sessions.keys():
                data = Setting(str(i).strip(), str(self.sessions[i]).strip())
                table.append(data)
            pptable(table)
        else:
            super(http_sniffer, self).view()
def view ( self ) : if self . config [ 'verb' ] . value is 4 : Setting = namedtuple ( 'Setting' , [ 'Host' , 'SessionID' ] ) table = [ ] for i in self . sessions . keys ( ) : data = Setting ( str ( i ) . strip ( ) , str ( self . sessions [ i ] ) . strip ( ) ) table . append ( data ) pptable ( table ) else : super ( http_sniffer , self ) . view ( )