]> granicus.if.org Git - python/commit
Backport r67974:
authorGeorg Brandl <georg@python.org>
Sun, 28 Dec 2008 11:54:53 +0000 (11:54 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 28 Dec 2008 11:54:53 +0000 (11:54 +0000)
commit6425a2fa8f354e755f876f2dea708697e42cc9fd
tree45f306eac9c148cc56fe9aeef40fbbabc2a25067
parente7d1e7e5d43e369db602bab35a6d5a47b6e5569e
Backport r67974:

#4759: allow None as first argument of bytearray.translate(), for consistency with bytes.translate().

Also fix segfault for bytearray.translate(x, None) -- will backport this part to 3.0 and 2.6.
Lib/test/test_bytes.py
Misc/NEWS
Objects/bytearrayobject.c