Skip to content

Commit 15a3b1c

Browse files
committed
inline the BIGCHUNK constant, as it's lost when we patch _pyio.FileIO
1 parent 2da2430 commit 15a3b1c

File tree

1 file changed

+1
-4
lines changed
  • graalpython/lib-graalpython

1 file changed

+1
-4
lines changed

graalpython/lib-graalpython/_io.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,6 @@ def __decode_mode__(mode):
297297

298298
return readable, writable, created, append, flags
299299

300-
SMALLCHUNK = 8 * 1024
301-
BIGCHUNK = 512 * 1024
302-
303300
def __init__(self, name, mode='r', closefd=True, opener=None):
304301
_RawIOBase.__init__(self)
305302
self.__fd__ = -1
@@ -512,7 +509,7 @@ def readall(self):
512509
total = 0
513510
builder = []
514511
while True:
515-
newsize = FileIO.BIGCHUNK
512+
newsize = 512 * 1024
516513
chunk = _os.read(self.__fd__, newsize - total)
517514
if len(chunk) == 0:
518515
break

0 commit comments

Comments
 (0)