mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #3782: os.write() must not accept unicode strings
This commit is contained in:
parent
4e80cdd739
commit
9cadb1b6e0
9 changed files with 50 additions and 24 deletions
|
@ -10,7 +10,7 @@ try:
|
|||
fd = int(sys.argv[2])
|
||||
|
||||
try:
|
||||
os.write(fd, "blat")
|
||||
os.write(fd, b"blat")
|
||||
except os.error:
|
||||
# Success -- could not write to fd.
|
||||
sys.exit(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue