[Python-checkins] CVS: python/dist/src/Lib posixpath.py,1.29,1.30

Guido van Rossum guido@cnri.reston.va.us
Tue, 29 Feb 2000 08:31:19 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Lib
In directory eric:/projects/python/develop/guido/src/Lib

Modified Files:
	posixpath.py 
Log Message:
Remove some redundant logic from walk() -- there's no need to check
for "." and "..", since listdir() no longer returns those.


Index: posixpath.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/posixpath.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -r1.29 -r1.30
*** posixpath.py	2000/02/28 14:27:07	1.29
--- posixpath.py	2000/02/29 13:31:16	1.30
***************
*** 264,270 ****
          return
      func(arg, top, names)
-     exceptions = ('.', '..')
      for name in names:
-         if name not in exceptions:
              name = join(top, name)
              st = os.lstat(name)
--- 264,268 ----