Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

thgtaskbar: give stdout, stderr closed attribute when frozen

Else Mercurial gets back-traces trying to call close() on
the py2exe 'Blackhole' class.

Changeset e851534c44f0

Parent ff98b044ff9c

by Steve Borho

Changes to one file · Browse files at e851534c44f0 Showing diff from parent ff98b044ff9c Diff from another changeset...

Change 1 of 1 Show Entire File thgtaskbar.py Stacked
 
24
25
26
 
 
 
 
27
28
29
 
24
25
26
27
28
29
30
31
32
33
@@ -24,6 +24,10 @@
 from mercurial import ui  from thgutil import thread2, paths, shlib   +if hasattr(sys, "frozen"): + sys.stdout.closed = True + sys.stderr.closed = True +  APP_TITLE = "TortoiseHg RPC server"    SHOWLOG_CMD = 1023