mercurial/util.py
changeset 18930 9dd5a4815c6f
parent 18929 0080d0d1fcb3
child 18938 e22107cff6bf
equal deleted inserted replaced
18929:0080d0d1fcb3 18930:9dd5a4815c6f
   767             try:
   767             try:
   768                 os.unlink(f)
   768                 os.unlink(f)
   769             except OSError:
   769             except OSError:
   770                 pass
   770                 pass
   771 
   771 
   772     return False
       
   773 
       
   774 def endswithsep(path):
   772 def endswithsep(path):
   775     '''Check path ends with os.sep or os.altsep.'''
   773     '''Check path ends with os.sep or os.altsep.'''
   776     return path.endswith(os.sep) or os.altsep and path.endswith(os.altsep)
   774     return path.endswith(os.sep) or os.altsep and path.endswith(os.altsep)
   777 
   775 
   778 def splitpath(path):
   776 def splitpath(path):