diff options
| author | Serge Guelton <sguelton@quarkslab.com> | 2018-12-13 07:42:30 +0000 |
|---|---|---|
| committer | Serge Guelton <sguelton@quarkslab.com> | 2018-12-13 07:42:30 +0000 |
| commit | b3835de3eebafb073f315fa2b5e27f952b607ebb (patch) | |
| tree | 125c298c9a33599c7a3d262b2e36477bf23bf8f1 | |
| parent | a048d58de72d830a04e4dcbdc1f7beed87884479 (diff) | |
| download | bcm5719-llvm-b3835de3eebafb073f315fa2b5e27f952b607ebb.tar.gz bcm5719-llvm-b3835de3eebafb073f315fa2b5e27f952b607ebb.zip | |
Portable Python script across Python version
Use higher-level and more compatible threading module to start a new thread.
Differential Revision: https://reviews.llvm.org/D55259
llvm-svn: 349008
| -rwxr-xr-x | clang/tools/scan-view/bin/scan-view | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/scan-view/bin/scan-view b/clang/tools/scan-view/bin/scan-view index 1b6e8ba90df..a3999168f32 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) |

