def notTorNZBFile(filename):
 return (not (filename.endswith(u'.torrent') or filename.endswith(u'.nzb')))

def notTorNZBFile ( filename ) : return ( not ( filename . endswith ( u'.torrent' ) or filename . endswith ( u'.nzb' ) ) )
returns true if filename is not a nzb nor torrent file .