Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bfa9f13

Browse files
committed
islink() returns false, but there is no constant false! Return 0 instead.
1 parent 79b2038 commit bfa9f13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/dospath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def commonprefix(m):
134134
# This will always return false on systems where posix.lstat doesn't exist.
135135

136136
def islink(path):
137-
return false
137+
return 0
138138

139139

140140
# Does a path exist?

0 commit comments

Comments
 (0)