summaryrefslogtreecommitdiff
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-02-29 13:31:16 +0000
committerGuido van Rossum <guido@python.org>2000-02-29 13:31:16 +0000
commit19ff7ef2bf1cb726f4f929a3bb21aa920ee8525d (patch)
treef555155da2d74092044f54946182eaf56f077e1f /Lib/posixpath.py
parent16aef0768984de7607cc23b5aa6e9ddb752bc00f (diff)
downloadcpython-19ff7ef2bf1cb726f4f929a3bb21aa920ee8525d.tar.gz
Remove some redundant logic from walk() -- there's no need to check
for "." and "..", since listdir() no longer returns those.
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index cc0e4cba1f..a603e9ea99 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -263,9 +263,7 @@ of all the files and subdirs in directory "d".
except os.error:
return
func(arg, top, names)
- exceptions = ('.', '..')
for name in names:
- if name not in exceptions:
name = join(top, name)
st = os.lstat(name)
if stat.S_ISDIR(st[stat.ST_MODE]):