Partial introduction of bools where appropriate.

This commit is contained in:
Guido van Rossum 2002-04-07 06:36:23 +00:00
parent b8bff3f4a9
commit 8ca162f417
18 changed files with 96 additions and 94 deletions

View file

@ -307,7 +307,7 @@ def executable(path):
try:
st = os.stat(path)
except os.error:
return 0
return False
return st[0] & 0111 != 0