Which legal provision enabled illiterate white people to retain their voting rights in the South after the Civil War?

A. black codes
B. grandfather clause
C. Jim Crow laws
D. poll tax