changeset 27363:c7ab2087d436

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".
author Yuya Nishihara <yuya@tcha.org>
date Sun, 13 Dec 2015 18:48:35 +0900
parents c220434a3461
children ad1cc1435b13
files mercurial/util.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Sat Nov 21 16:21:52 2015 +0900
+++ b/mercurial/util.py	Sun Dec 13 18:48:35 2015 +0900
@@ -2308,9 +2308,9 @@
     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