##// END OF EJS Templates
ui: look before you leap on sys.stdout.closed
Dirkjan Ochtman -
r10383:f83291e5 default
parent child Browse files
Show More
@@ -237,7 +237,7 b' class ui(object):'
237 237
238 238 def write_err(self, *args):
239 239 try:
240 if not sys.stdout.closed:
240 if not hasattr(sys.stdout, 'closed') or not sys.stdout.closed:
241 241 sys.stdout.flush()
242 242 for a in args:
243 243 sys.stderr.write(str(a))
General Comments 0
You need to be logged in to leave comments. Login now