#NEWLINE# def _filterEmptyHeaders( self , headers ) : #NEWLINE# #INDENT# newHeaders = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for header in headers . keys ( ) : #NEWLINE# #INDENT# if ( ( header is not None ) and ( header != '' ) ) : #NEWLINE# #INDENT# newHeaders [ header ] = headers [ header ] #NEWLINE# #UNINDENT# #UNINDENT# return newHeaders