BOSTON — The longtime girlfriend of gangster James “Whitey” Bulger is expected to plead guilty to a federal contempt charge this week.

A change-of-plea hearing is scheduled Wednesday for Catherine Greig. Her lawyer told a judge in January that she intends to plead guilty.

Greig is already serving an eight-year prison term for helping Bulger avoid capture during his 16 years as a fugitive.

She was indicted in September on the contempt charge for allegedly disobeying a judge’s order to testify before a grand jury investigating whether other people helped and harbored Bulger.

Bulger fled Boston ahead of a 1995 indictment and remained a fugitive until he and Greig were captured in Santa Monica, California, in 2011.

Bulger was convicted in a sweeping racketeering indictment and is serving a life sentence.