mirror of
https://github.com/romanz/amodem.git
synced 2026-04-17 19:55:58 +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:
|
if 'w' in mode:
|
||||||
return sys.stdout.buffer
|
return sys.stdout.buffer
|
||||||
|
|
||||||
return open(fname, mode)
|
return open(fname, mode) # pylint: disable=unspecified-encoding
|
||||||
|
|
||||||
return opener
|
return opener
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user