Merge pull request #4388 from jdufresne/str-bytes-shim

Remove leftover Python 2 compatibility shim
This commit is contained in:
Hugo van Kemenade 2020-01-29 14:41:59 +02:00 committed by GitHub
commit 29d36c9260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,15 +235,11 @@ class PdfName:
result.extend(b"#%02X" % b)
return bytes(result)
__str__ = __bytes__
class PdfArray(list):
def __bytes__(self):
return b"[ " + b" ".join(pdf_repr(x) for x in self) + b" ]"
__str__ = __bytes__
class PdfDict(collections.UserDict):
def __setattr__(self, key, value):