Add optional delete argument to bytes.translate and bytearray.translate (#416)

This commit is contained in:
johnklai1
2016-07-28 23:38:56 -07:00
committed by Guido van Rossum
parent 781b079f91
commit 9795200acc

View File

@@ -306,7 +306,7 @@ class bytes(ByteString):
def strip(self, chars: bytes = None) -> bytes: ...
def swapcase(self) -> bytes: ...
def title(self) -> bytes: ...
def translate(self, table: bytes) -> bytes: ...
def translate(self, table: bytes, delete: bytes = None) -> bytes: ...
def upper(self) -> bytes: ...
def zfill(self, width: int) -> bytes: ...
@classmethod
@@ -379,7 +379,7 @@ class bytearray(MutableSequence[int], ByteString):
def strip(self, chars: bytes = None) -> bytearray: ...
def swapcase(self) -> bytearray: ...
def title(self) -> bytearray: ...
def translate(self, table: bytes) -> bytearray: ...
def translate(self, table: bytes, delete: bytes = None) -> bytearray: ...
def upper(self) -> bytearray: ...
def zfill(self, width: int) -> bytearray: ...
@classmethod