don't try to remove pycs twice

This commit is contained in:
Benjamin Peterson 2011-06-29 12:16:47 -05:00
parent 4fcd346838
commit 1707168b62
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ def _drain_pycs(state):
state.trace("couldn't find pyc: %r" % (pyc,)) state.trace("couldn't find pyc: %r" % (pyc,))
else: else:
state.trace("removed pyc: %r" % (pyc,)) state.trace("removed pyc: %r" % (pyc,))
del state.pycs[:]
def _write_pyc(co, source_path, pyc): def _write_pyc(co, source_path, pyc):
mtime = int(source_path.mtime()) mtime = int(source_path.mtime())