mercurial/util.py
changeset 27363 c7ab2087d436
parent 27358 ac839ee45b6a
child 27371 45d996a566d7
equal deleted inserted replaced
27362:c220434a3461 27363:c7ab2087d436
  2306     '''remove all authentication information from a url string'''
  2306     '''remove all authentication information from a url string'''
  2307     u = url(u)
  2307     u = url(u)
  2308     u.user = u.passwd = None
  2308     u.user = u.passwd = None
  2309     return str(u)
  2309     return str(u)
  2310 
  2310 
  2311 def isatty(fd):
  2311 def isatty(fp):
  2312     try:
  2312     try:
  2313         return fd.isatty()
  2313         return fp.isatty()
  2314     except AttributeError:
  2314     except AttributeError:
  2315         return False
  2315         return False
  2316 
  2316 
  2317 timecount = unitcountfn(
  2317 timecount = unitcountfn(
  2318     (1, 1e3, _('%.0f s')),
  2318     (1, 1e3, _('%.0f s')),