Skip to content

Commit 33caf80

Browse files
committed
change at tempfile.mkstemp() instead of tempfile.mktemp()
1 parent 345f5e7 commit 33caf80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/asyncio/windows_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232

3333
def pipe(*, duplex=False, overlapped=(True, True), bufsize=BUFSIZE):
3434
"""Like os.pipe() but with overlapped support and using handles not fds."""
35-
address = r'\\.\pipe\python-pipe-{:d}-{:s}'.format(os.getpid(),
36-
str(uuid.uuid4()))
35+
address = tempfile.mkstemp(r'\\.\pipe\python-pipe-{:d}-{:s}'.format(os.getpid(),
36+
str(uuid.uuid4())))
3737

3838
if duplex:
3939
openmode = _winapi.PIPE_ACCESS_DUPLEX

0 commit comments

Comments
 (0)