Revert "Update file.py"

This reverts commit 76530a526e.
This commit is contained in:
Thomas S Hatch 2013-09-18 23:36:16 -06:00
parent e4fada32f6
commit e14cac17e3

View File

@ -282,7 +282,7 @@ def _clean_dir(root, keep, exclude_pat):
if nfn not in real_keep:
# -- check if this is a part of exclude_pat(only). No need to
# check include_pat
if not _check_include_exclude(nfn[len(root):], None,
if not _check_include_exclude(nfn[len(root) + 1:], None,
exclude_pat):
continue
removed.add(nfn)