Skip to content

Commit daec027

Browse files
committed
fix windows_utils.py
1 parent 2381537 commit daec027

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 = tempfile.mkstemp(r'\\.\pipe\python-pipe-{:d}-{:s}'.format(os.getpid(),
36-
str(uuid.uuid4())))
35+
pipename = f'python-pipe-{os.getpid()}-{uuid.uuid4()}'
36+
address = fr'\\.\pipe\{pipename}'
3737

3838
if duplex:
3939
openmode = _winapi.PIPE_ACCESS_DUPLEX

0 commit comments

Comments
 (0)