diff options
author | Guido van Rossum <guido@python.org> | 2002-04-07 06:36:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-04-07 06:36:23 (GMT) |
commit | 8ca162f417c6a72faf02831457b4054a73087b78 (patch) | |
tree | 2d882f9a1fe596830f47f1132a5294633ba05f33 /Lib/ntpath.py | |
parent | b8bff3f4a9e3be8b43a394d3795a46af2831fe5e (diff) | |
download | cpython-8ca162f417c6a72faf02831457b4054a73087b78.zip cpython-8ca162f417c6a72faf02831457b4054a73087b78.tar.gz cpython-8ca162f417c6a72faf02831457b4054a73087b78.tar.bz2 |
Partial introduction of bools where appropriate.
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r-- | Lib/ntpath.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 8cd8e9a..370bd6e 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -235,7 +235,7 @@ def getatime(filename): def islink(path): """Test for symbolic link. On WindowsNT/95 always returns false""" - return 0 + return False # Does a path exist? @@ -259,7 +259,7 @@ def isdir(path): try: st = os.stat(path) except os.error: - return 0 + return False return stat.S_ISDIR(st[stat.ST_MODE]) @@ -272,7 +272,7 @@ def isfile(path): try: st = os.stat(path) except os.error: - return 0 + return False return stat.S_ISREG(st[stat.ST_MODE]) |