[PATCH] ui: use self._isatty() for consistency
Augie Fackler
raf at durin42.com
Thu Oct 9 18:54:28 UTC 2014
On Fri, Oct 10, 2014 at 12:42:28AM +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1412767116 -32400
> # Wed Oct 08 20:18:36 2014 +0900
> # Node ID e4b2beb54fbd39980b3dd7c5a263fd74d18d9b33
> # Parent a1eb21f5caea4366310e32aa85248791d5bbfa0c
> ui: use self._isatty() for consistency
looks good, queued
>
> diff --git a/mercurial/ui.py b/mercurial/ui.py
> --- a/mercurial/ui.py
> +++ b/mercurial/ui.py
> @@ -684,7 +684,7 @@ class ui(object):
> r = default
> # sometimes self.interactive disagrees with isatty,
> # show response provided on stdin when simulating
> - if not util.isatty(self.fin):
> + if not self._isatty(self.fin):
> self.write(r, "\n")
> return r
> except EOFError:
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list