Use higher-level and more compatible threading module to start a new thread.
Differential Revision: https://reviews.llvm.org/D55259
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349008
91177308-0d34-0410-b5e6-
96231b3b80d8
import imp
import os
import posixpath
-import thread
+import threading
import time
import urllib
import webbrowser
# Kick off thread to wait for server and start web browser, if
# requested.
if args.startBrowser:
- t = thread.start_new_thread(start_browser, (port, args))
+ threading.Thread(target=start_browser, args=(port, args)).start()
run(port, args, args.root)