def filtered_files(base, excludes=()):
excludes = set(base + "/" + e for e in excludes)
for root, _dirs, files in os.walk(base):
for filename in files:
full = root + "/" + filename
if filename.endswith(".py") and not filename.startswith("_"):
After Change
lines = [line.rstrip() for line in f]
// Skip comments and empty lines to get list of files we DON"T want to
// filter out; this is definitely complicated
unfiltered = set(
line for line in lines if not line.startswith("//") and line != "")
for root, _dirs, files in os.walk(base):
for filename in files:
if filename.endswith(".py") and not filename.startswith("_"):
full = root + "/" + filename