#NEWLINE# def _transform_object( self , obj ) : #NEWLINE# #INDENT# if ( 'error' in obj ) : #NEWLINE# #INDENT# raise errors . IgnoreObject ( 'Error' ) #NEWLINE# #UNINDENT# data = Transformable ( obj ) #NEWLINE# out = dict ( ) #NEWLINE# out [ 'support' ] = True #NEWLINE# t = data [ 'data' ] [ 'telnet' ] #NEWLINE# banner = t [ 'banner' ] . resolve ( ) #NEWLINE# if banner : #NEWLINE# #INDENT# out [ 'banner' ] = self . clean_banner ( banner ) #NEWLINE# #UNINDENT# will = t [ 'will' ] . resolve ( ) #NEWLINE# if will : #NEWLINE# #INDENT# out [ 'will' ] = will #NEWLINE# #UNINDENT# wont = t [ 'wont' ] . resolve ( ) #NEWLINE# if wont : #NEWLINE# #INDENT# out [ 'wont' ] = wont #NEWLINE# #UNINDENT# do = t [ 'do' ] . resolve ( ) #NEWLINE# if do : #NEWLINE# #INDENT# out [ 'do' ] = do #NEWLINE# #UNINDENT# dont = t [ 'dont' ] . resolve ( ) #NEWLINE# if dont : #NEWLINE# #INDENT# out [ 'dont' ] = dont #NEWLINE# #UNINDENT# if ( not out ) : #NEWLINE# #INDENT# raise errors . IgnoreObject ( 'Empty output dict' ) #NEWLINE# #UNINDENT# out [ 'ip_address' ] = obj [ 'ip' ] #NEWLINE# out [ 'timestamp' ] = obj [ 'timestamp' ] #NEWLINE# zout = ZMapTransformOutput ( ) #NEWLINE# zout . transformed = out #NEWLINE# return zout