mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Convert a pile of obvious "yes/no" functions to return bool.
This commit is contained in:
parent
2f486b7fa6
commit
bc0e910826
34 changed files with 117 additions and 122 deletions
|
@ -289,10 +289,10 @@ class CVS:
|
|||
os.rename(file, bfile)
|
||||
|
||||
def ignored(self, file):
|
||||
if os.path.isdir(file): return 1
|
||||
if os.path.isdir(file): return True
|
||||
for pat in self.IgnoreList:
|
||||
if fnmatch.fnmatch(file, pat): return 1
|
||||
return 0
|
||||
if fnmatch.fnmatch(file, pat): return True
|
||||
return Falso
|
||||
|
||||
|
||||
# hexify and unhexify are useful to print MD5 checksums in hex format
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue