mirror of
https://github.com/romanz/amodem.git
synced 2026-02-05 16:26:22 +08:00
No need to specify encoding in binary I/O
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user