#NEWLINE# def handle( result , line , filename , lineNo ) : #NEWLINE# #INDENT# parts = [ p . strip ( ) for p in line . split ( ':' , 1 ) ] #NEWLINE# if ( len ( parts ) != 2 ) : #NEWLINE# #INDENT# fmt = 'Invalid format on line %d of alias file %s.' #NEWLINE# arg = ( arg , filename ) #NEWLINE# log . err ( ( fmt % arg ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( user , alias ) = parts #NEWLINE# result . setdefault ( user . strip ( ) , [ ] ) . extend ( map ( str . strip , alias . split ( ',' ) ) )