def skip_signing_warning(result):
 try:
  messages = result['messages']
 except (KeyError, ValueError):
  return result
 messages = [m for m in messages if ('signed_xpi' not in m['id'])]
 diff = (len(result['messages']) - len(messages))
 if diff:
  result['messages'] = messages
  result['warnings'] -= diff
 return result

def skip_signing_warning ( result ) : try : messages = result [ 'messages' ] except ( KeyError , ValueError ) : return result messages = [ m for m in messages if ( 'signed_xpi' not in m [ 'id' ] ) ] diff = ( len ( result [ 'messages' ] ) - len ( messages ) ) if diff : result [ 'messages' ] = messages result [ 'warnings' ] -= diff return result
remove the "package already signed" warning if were not signing .