FILE - In this Aug. 26, 2019, file photo, former Arizona Maricopa County Sheriff Joe Arpaio poses for a portrait after talking about trying to get back the job he lost in 2016 as he announces his 2020 campaign for Maricopa County Sheriff in Fountain Hills, Ariz. An appeals court will hear arguments Wednesday, Oct. 23, in Arpaio's bid to erase his now-pardoned contempt of court conviction from his record. (AP Photo/Ross D. Franklin, File)

FILE - In this Aug. 26, 2019, file photo, former Arizona Maricopa County Sheriff Joe Arpaio poses for a portrait after talking about trying to get back the job he lost in 2016 as he announces his 2020 campaign for Maricopa County Sheriff in Fountain Hills, Ariz. An appeals court will hear arguments Wednesday, Oct. 23, in Arpaio's bid to erase his now-pardoned contempt of court conviction from his record. (AP Photo/Ross D. Franklin, File)

PHOENIX (AP) — An appeals court in San Francisco will hear arguments Wednesday in former Sheriff Joe Arpaio’s bid to erase his contempt of court conviction from his record after he was pardoned by President Donald Trump.

The former six-term sheriff of metro Phoenix had appealed a lower-court ruling that refused to expunge his conviction for disobeying a 2011 court order barring his traffic patrols that targeted immigrants.

The judge who made the ruling explained pardons don’t erase convictions or the facts of cases and that Arpaio’s clemency only mooted his possible punishments.

ADVERTISEMENT

Arpaio’s lawyers had previously told the 9th U.S. Circuit Court of Appeals that the lawman was deprived of his opportunity to appeal his conviction because the pardon came before he was sentenced and final judgment was entered, so the conviction must be erased.

Special prosecutor Christopher Caldwell argues Arpaio gave up his right to appeal the conviction when he accepted the August 2017 pardon — and that if the former sheriff wanted to challenge the conviction, he should have rejected the clemency and taken his chances in the appeals court.

Caldwell, an attorney in private practice in Los Angeles who worked in the Justice Department in the 1980s, was appointed by the appeals court to defend the ruling over the pardon after the Justice Department refused to handle the appeal.

Lawyers for the Justice Department won the conviction against Arpaio, but once the pardon was issued, the agency sided with Arpaio in arguing that the conviction should be expunged because he was pardoned before the conviction became final.

Arpaio, who will not attend Wednesday’s hearing, has acknowledged continuing his immigration patrols but insisted his disobedience wasn’t intentional.

He was accused of prolonging his immigration patrols for 17 months to boost his successful 2012 re-election campaign.

His defiance of the court order is believed to have contributed to his 2016 election loss as Maricopa County’s top law enforcer.

The 87-year-old lawman is now seeking the Republican nomination in the 2020 sheriff’s race.

His first political comeback attempt ended with Arpaio placing third in the 2018 U.S. Senate primary.

Even if the pardon hadn’t been issued, the misdemeanor conviction wouldn’t have prevented him from running for office again.