On Wed, 24 Oct 2007, Dustin J. Mitchell wrote:
> +    # Parse the output of stty -a, if we have a terminal
> +    if os.environ.get('TERM', '') and os.isatty(1):

stty traditionally works on stdin, not stdout, so I think you want
os.isatty(0).

> +        try:
> +            os.putenv('LC_ALL', 'C')
> +            out = os.popen("stty -a").read()
> +        except:
> +            # ignore all errors
> +            out = ''

Perhaps insert "except KeyboardInterrupt: raise" above the "except:".

Perhaps use "stty -a 2>/dev/null" to hide error messages from stty.

--apb (Alan Barrett)
_______________________________________________
Svnmerge mailing list
[email protected]
http://www.orcaware.com/mailman/listinfo/svnmerge

Reply via email to