Use PyOS_snprintf instead of sprintf.

Also replace a switch statement with one case and a default to an
if/else.
1 file changed