mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Partial introduction of bools where appropriate.
This commit is contained in:
parent
b8bff3f4a9
commit
8ca162f417
18 changed files with 96 additions and 94 deletions
|
@ -125,7 +125,7 @@ def islink(s):
|
|||
"""Return true if the pathname refers to a symbolic link.
|
||||
Always false on the Mac, until we understand Aliases.)"""
|
||||
|
||||
return 0
|
||||
return False
|
||||
|
||||
|
||||
def isfile(s):
|
||||
|
@ -134,7 +134,7 @@ def isfile(s):
|
|||
try:
|
||||
st = os.stat(s)
|
||||
except os.error:
|
||||
return 0
|
||||
return False
|
||||
return S_ISREG(st[ST_MODE])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue