Gov. Code 53165.1 prohibits local governments from promulgating and enforcing ordinances or other law that punishes landlords or tenants based on their prior contact with law enforcement–a measure designed to prohibit landlords from refusing to rend to prospective tenants who pose no safety threat but have criminal history records, including arrests without conviction. This decision holds that a city attorney’s suit on behalf of the People of the State of California to enjoin a public nuisance does not offend section 53165.1. A suit on behalf of the People is not a local government enforcement and what is enforced is not a local ordinance but state law. The fact that police reports will be used as evidence of the nuisance does not bring the suit within the ambit of the statutory prohibition.