Do include .pyc files after all
Amends
@@ -25,22 +25,15 @@ def builtin(input_files, **kwargs):
def python(files, input_files, **kwargs):
- remove = []
add = []
for path, fi in iteritems(files):
if path.ext == '.pyc':
pyfile = path.parent / path.stem + '.py'
if pyfile.is_file():
- logging.info("Removing %s", path)
- remove.append(path)
- pyfile = path.parent / path.stem + '.py'
if pyfile not in files:
logging.info("Adding %s", pyfile)
add.append(TracedFile(pyfile))
- for path in remove:
- files.pop(path, None)
-
for fi in add:
files[fi.path] = fi
