Skip to content

Commit e235e7f

Browse files
mrclaryhlouzada
andauthored
[ci skip] Update spyder/utils/environ.py
Co-authored-by: Hendrik <[email protected]>
1 parent 3254528 commit e235e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spyder/utils/environ.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async def get_user_environment_variables() -> dict:
119119
proc = await async_run_shell_command(user_env_script, env={}, text=True)
120120

121121
# Use timeout to fix spyder-ide/spyder#21172
122-
stdout, stderr = proc.communicate(timeout=10)
122+
stdout, stderr = await asyncio.wait_for(proc.communicate(), timeout=10)
123123

124124
if stderr:
125125
logger.info(stderr.strip())

0 commit comments

Comments
 (0)