Refs #23271 -- Fixed breakage by 6fb9dee4 under Python2+Windows.