mirror of
https://github.com/python/cpython.git
synced 2025-10-07 15:42:02 +00:00
bpo-43651: Fix test_compileall with PEP 597 (GH-25128)
This commit is contained in:
parent
c0ec4486dc
commit
80017752ba
3 changed files with 9 additions and 9 deletions
|
@ -419,7 +419,7 @@ def _close_stdin():
|
|||
try:
|
||||
fd = os.open(os.devnull, os.O_RDONLY)
|
||||
try:
|
||||
sys.stdin = open(fd, closefd=False)
|
||||
sys.stdin = open(fd, encoding="utf-8", closefd=False)
|
||||
except:
|
||||
os.close(fd)
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue