summaryrefslogtreecommitdiff
path: root/Lib/ntpath.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-04-07 06:36:23 +0000
committerGuido van Rossum <guido@python.org>2002-04-07 06:36:23 +0000
commitbfc88c2e4720ca7905b5962031e93d9de5e09dea (patch)
treecdaacf219e22d82081437c1311c102f375808a62 /Lib/ntpath.py
parent8efae3ac61d5744bfbea5399478b28fc6b4b6ea7 (diff)
downloadcpython-bfc88c2e4720ca7905b5962031e93d9de5e09dea.tar.gz
Partial introduction of bools where appropriate.
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r--Lib/ntpath.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py
index 8cd8e9ad68..370bd6e061 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])