diff options
Diffstat (limited to 'Lib/dospath.py')
-rw-r--r-- | Lib/dospath.py | 8 |
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]) |