No need to specify encoding in binary I/O

This commit is contained in:
Roman Zeyde
2022-10-27 21:51:07 +03:00
parent 8553f74f88
commit 034a2c9ebe

View File

@@ -82,7 +82,7 @@ def FileType(mode, interface_factory=None):
if 'w' in mode:
return sys.stdout.buffer
return open(fname, mode)
return open(fname, mode) # pylint: disable=unspecified-encoding
return opener