comparison mercurial/util.py @ 3126:cff3c58a5766

fix warnings spotted by pychecker
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 18 Sep 2006 17:43:31 +0200
parents c27d1e1798a3
children e4ea47c21480
comparison
equal deleted inserted replaced
3125:2e043c9a38a6 3126:cff3c58a5766
613 rcs = [os.path.join(path, 'hgrc')] 613 rcs = [os.path.join(path, 'hgrc')]
614 rcdir = os.path.join(path, 'hgrc.d') 614 rcdir = os.path.join(path, 'hgrc.d')
615 try: 615 try:
616 rcs.extend([os.path.join(rcdir, f) for f in os.listdir(rcdir) 616 rcs.extend([os.path.join(rcdir, f) for f in os.listdir(rcdir)
617 if f.endswith(".rc")]) 617 if f.endswith(".rc")])
618 except OSError, inst: pass 618 except OSError:
619 pass
619 return rcs 620 return rcs
620 621
621 def os_rcpath(): 622 def os_rcpath():
622 '''return default os-specific hgrc search path''' 623 '''return default os-specific hgrc search path'''
623 path = [] 624 path = []