[Python-checkins] CVS: python/dist/src/Demo/pdist cvslib.py,1.10,1.11
Tim Peters
tim_one@users.sourceforge.net
Thu, 04 Apr 2002 14:56:00 -0800
Update of /cvsroot/python/python/dist/src/Demo/pdist
In directory usw-pr-cvs1:/tmp/cvs-serv18060/python/Demo/pdist
Modified Files:
cvslib.py
Log Message:
Convert a pile of obvious "yes/no" functions to return bool.
Index: cvslib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/pdist/cvslib.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** cvslib.py 7 Oct 1995 19:25:25 -0000 1.10
--- cvslib.py 4 Apr 2002 22:55:57 -0000 1.11
***************
*** 290,297 ****
def ignored(self, file):
! if os.path.isdir(file): return 1
for pat in self.IgnoreList:
! if fnmatch.fnmatch(file, pat): return 1
! return 0
--- 290,297 ----
def ignored(self, file):
! if os.path.isdir(file): return True
for pat in self.IgnoreList:
! if fnmatch.fnmatch(file, pat): return True
! return Falso