[PATCH] D55259: Python 2/3 compat - threading

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 12 23:45:47 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL349008: Portable Python script across Python version (authored by serge_sans_paille, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D55259?vs=176573&id=178007#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55259/new/

https://reviews.llvm.org/D55259

Files:
  cfe/trunk/tools/scan-view/bin/scan-view


Index: cfe/trunk/tools/scan-view/bin/scan-view
===================================================================
--- cfe/trunk/tools/scan-view/bin/scan-view
+++ cfe/trunk/tools/scan-view/bin/scan-view
@@ -7,7 +7,7 @@
 import imp
 import os
 import posixpath
-import thread
+import threading
 import time
 import urllib
 import webbrowser
@@ -135,7 +135,7 @@
     # 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)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55259.178007.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181213/839fef25/attachment.bin>


More information about the llvm-commits mailing list