Small style fixes

"double quotes"
This commit is contained in:
Dan 2018-09-12 07:44:49 +02:00 committed by GitHub
parent 392f0070fb
commit b1aff3ca5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ from . import Bytes
class String(Bytes):
@staticmethod
def read(b: BytesIO, *args) -> str:
return super(String, String).read(b).decode(errors='replace')
return super(String, String).read(b).decode(errors="replace")
def __new__(cls, value: str) -> bytes:
return super().__new__(cls, value.encode())