diff .hgsigs @ 10421:452b6195e94c

ui: look before you leap on sys.stderr.closed (and look nicer) f83291e5643e introduced a fix if sys.stdout.closed does not exist. This change uses a getattr with default instead of hasattr (which just calls getattr) and accessing the attribute. Additionally it applies the same fix for sys.stderr.closed as this is not available in the bpython shell (reported by Roger Gammans).
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 12 Feb 2010 15:46:48 +0100
parents 7c5eb0988e7a
children cbea16fb46c3
line wrap: on
line diff