We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15a3b1c commit 4f20ee4Copy full SHA for 4f20ee4
graalpython/lib-python/3/_pyio.py
@@ -1578,7 +1578,7 @@ def readall(self):
1578
except OSError:
1579
pass
1580
1581
- result = bytearray()
+ result = []
1582
while True:
1583
if len(result) >= bufsize:
1584
bufsize = len(result)
@@ -1592,9 +1592,9 @@ def readall(self):
1592
return None
1593
if not chunk: # reached the end of the file
1594
break
1595
- result += chunk
+ result.append(chunk)
1596
1597
- return bytes(result)
+ return b"".join(result)
1598
1599
def readinto(self, b):
1600
"""Same as RawIOBase.readinto()."""
0 commit comments