Add missing return in is_absolute_path()

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3846 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2008-07-09 19:17:33 +00:00
parent a34fb3237a
commit 523ee87f0c

View file

@ -75,7 +75,7 @@ def is_absolute_path (path):
with a drive letter. On all other systems absolute paths start with
a slash."""
if os.name == 'nt':
re.search(r"^[a-zA-Z]:", path)
return re.search(r"^[a-zA-Z]:", path)
return path.startswith("/")