summaryrefslogtreecommitdiffstats
path: root/Lib/dospath.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-04 22:55:58 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-04 22:55:58 (GMT)
commitbc0e9108261693b6278687f4fb4709ff76c2e543 (patch)
treeafef5d4734034ed0268950cf06321aefd4154ff3 /Lib/dospath.py
parent2f486b7fa6451b790b154e6e4751239d69d46952 (diff)
downloadcpython-bc0e9108261693b6278687f4fb4709ff76c2e543.zip
cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.gz
cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.bz2
Convert a pile of obvious "yes/no" functions to return bool.
Diffstat (limited to 'Lib/dospath.py')
-rw-r--r--Lib/dospath.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/dospath.py b/Lib/dospath.py
index 652b35f..cfc0d86 100644
--- a/Lib/dospath.py
+++ b/Lib/dospath.py
@@ -151,8 +151,8 @@ def exists(path):
try:
st = os.stat(path)
except os.error:
- return 0
- return 1
+ return False
+ return True
def isdir(path):
@@ -161,7 +161,7 @@ def isdir(path):
try:
st = os.stat(path)
except os.error:
- return 0
+ return False
return stat.S_ISDIR(st[stat.ST_MODE])
@@ -171,7 +171,7 @@ def isfile(path):
try:
st = os.stat(path)
except os.error:
- return 0
+ return False
return stat.S_ISREG(st[stat.ST_MODE])