Issue 4759: bytearray.translate() should support None first argument (original) (raw)

Looks like there's a problem:

bytearray().translate(None, None) Traceback (most recent call last): File "", line 1, in TypeError: Type NoneType doesn't support the buffer API bytearray().translate(None, None) Erreur de segmentation

Also, the patch should probably be backported to trunk.