Skip to content

Commit c6920d4

Browse files
committed
Use io.open() instead of open() for consistency
Recommended in the Python docs (https://docs.python.org/3/howto/pyporting.html#text-versus-binary-data): "(...) You should also use io.open() for opening files instead of the built-in open() function as the io module is consistent from Python 2 to 3 while the built-in open() function is not (in Python 3 it’s actually io.open())."
1 parent 4192573 commit c6920d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kaitaistruct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import itertools
22
import sys
33
import struct
4-
from io import BytesIO, SEEK_CUR, SEEK_END # noqa
4+
from io import open, BytesIO, SEEK_CUR, SEEK_END # noqa
55

66
PY2 = sys.version_info[0] == 2
77

0 commit comments

Comments
 (0)