mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-16 12:21:13 +00:00
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:
parent
a34fb3237a
commit
523ee87f0c
1 changed files with 1 additions and 1 deletions
|
|
@ -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("/")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue