Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.1, 1.0.2, and 1.0.3

stable shlib: pull import out of a worker thread

Changeset ca6abee62f31

Parent 3b79ca50bed6

by Steve Borho

Changes to one file · Browse files at ca6abee62f31 Showing diff from parent 3b79ca50bed6 Diff from another changeset...

 
21
22
23
 
 
 
 
24
25
26
27
28
 
29
30
31
 
21
22
23
24
25
26
27
28
29
 
30
 
31
32
33
34
@@ -21,11 +21,14 @@
   if os.name == 'nt':   def browse_url(url): + try: + import win32api + except ImportError: + return   def start_browser():   try: - import win32api   win32api.ShellExecute(0, 'open', url, None, None, 0) - except (ImportError, Exception): + except Exception:   pass   threading.Thread(target=start_browser).start()