Skip to content

Commit 489beb8

Browse files
committed
Drop the threading usage for subprocess call
1 parent 6ae2972 commit 489beb8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

sphinx_autobuild/utils.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import shlex
66
import socket
7-
import threading
87
import webbrowser
98

109
from colorama import Fore, Style
@@ -22,12 +21,7 @@ def find_free_port():
2221

2322

2423
def open_browser(url_host: str) -> None:
25-
def _opener():
26-
webbrowser.open(f"http://{url_host}")
27-
28-
t = threading.Thread(target=_opener)
29-
t.start()
30-
t.join()
24+
webbrowser.open(f"http://{url_host}")
3125

3226

3327
def _log(text, *, colour):

0 commit comments

Comments
 (0)