SIGN IN SIGN UP

Optimize error handlers of ASCII and Latin1 encoders when the replacement

string is pure ASCII: use _PyBytesWriter_WriteBytes(), don't check individual
character.

Cleanup unicode_encode_ucs1():

* Rename repunicode to rep
* Clear rep object on error
* Factorize code between bytes and unicode path
V
Victor Stinner committed
6bd525b656f75c9752d39d9c4be1e1b29fa67cdb
Parent: ce179bf