translate()'s third argument is an optional string used as a comment: "None" is a valid value for this argument (and is indeed the stated default in the documentation), but as originally written it was not accepted, only actual strings were allowed. This commit modifies the format string from "s" to "z", allowing an explicit None argument.
5.8 KiB
5.8 KiB