# HG changeset patch # User Yuya Nishihara # Date 2015-12-13 09:48:35 # Node ID c7ab2087d436b1a56e97b5f0f51177c5cfe7d0f9 # Parent c220434a34613c5c424413156bf6ea462b473ba0 util: rename argument of isatty() In general, "fd" is a file descriptor, but isatty() expects a file object. We should call it "fp" or "fh". diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -2308,9 +2308,9 @@ def removeauth(u): u.user = u.passwd = None return str(u) -def isatty(fd): +def isatty(fp): try: - return fd.isatty() + return fp.isatty() except AttributeError: return False