Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 18930:9dd5a4815c6f
util: remove unreachable code
Found by Cython.
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Fri, 12 Apr 2013 19:48:07 -0700 |
parents | 0080d0d1fcb3 |
children | e22107cff6bf |
comparison
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): |