diff options
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r-- | Lib/macpath.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py index 6501fcd..80deaa9 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -139,13 +139,13 @@ def isfile(s): def exists(s): - """Return true if the pathname refers to an existing file or directory.""" + """Return True if the pathname refers to an existing file or directory.""" try: st = os.stat(s) except os.error: - return 0 - return 1 + return False + return True # Return the longest prefix of all list elements. |