diff --git a/clang/tools/scan-view/bin/scan-view b/clang/tools/scan-view/bin/scan-view index 1b6e8ba90dfa..a3999168f329 100755 --- a/clang/tools/scan-view/bin/scan-view +++ b/clang/tools/scan-view/bin/scan-view @@ -7,7 +7,7 @@ import sys import imp import os import posixpath -import thread +import threading import time import urllib import webbrowser @@ -135,7 +135,7 @@ def main(): # 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)