Fixed breakage by 6fb9dee4 under Python2+Windows.

Refs #23271