summaryrefslogtreecommitdiffstats
path: root/Demo/pdist
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-04 22:55:58 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-04 22:55:58 (GMT)
commitbc0e9108261693b6278687f4fb4709ff76c2e543 (patch)
treeafef5d4734034ed0268950cf06321aefd4154ff3 /Demo/pdist
parent2f486b7fa6451b790b154e6e4751239d69d46952 (diff)
downloadcpython-bc0e9108261693b6278687f4fb4709ff76c2e543.zip
cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.gz
cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.bz2
Convert a pile of obvious "yes/no" functions to return bool.
Diffstat (limited to 'Demo/pdist')
-rwxr-xr-xDemo/pdist/cvslib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/pdist/cvslib.py b/Demo/pdist/cvslib.py
index cf305c9..c72cd6b 100755
--- a/Demo/pdist/cvslib.py
+++ b/Demo/pdist/cvslib.py
@@ -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