Skip to content

Commit ff6fe3a

Browse files
committed
slighlty reduce our patches
1 parent be810e6 commit ff6fe3a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

graalpython/lib-python/3/_pyio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ def readall(self):
16061606
except OSError:
16071607
pass
16081608

1609-
result = []
1609+
result = bytearray()
16101610
while True:
16111611
if len(result) >= bufsize:
16121612
bufsize = len(result)
@@ -1620,9 +1620,9 @@ def readall(self):
16201620
return None
16211621
if not chunk: # reached the end of the file
16221622
break
1623-
result.append(chunk)
1623+
result += chunk
16241624

1625-
return b"".join(result)
1625+
return bytes(result)
16261626

16271627
def readinto(self, b):
16281628
"""Same as RawIOBase.readinto()."""

graalpython/lib-python/3/logging/handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
2323
To use, simply 'import logging.handlers' and log away!
2424
"""
25+
2526
import logging, socket, os, pickle, struct, time, re
2627
from stat import ST_DEV, ST_INO, ST_MTIME
2728
import queue

0 commit comments

Comments
 (0)