]> arthur.barton.de Git - bup.git/commit
Fix some list comprehensions that I thought were generator comprehensions.
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 9 Feb 2010 00:26:38 +0000 (19:26 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 9 Feb 2010 00:26:38 +0000 (19:26 -0500)
commit2ef015121cbe4191a4c092092ebd610fcad8a89f
tree044008f5e54de2bc8d2ac0182a95f7da06618b45
parentbe527be2f78d91e741028d57ac30f41c99df9e14
Fix some list comprehensions that I thought were generator comprehensions.

Apparently [x for x in whatever] yields a list, not an iterator, which means
two things:
  - it might use more memory than I thought
  - you definitely don't need to write list([...]) since it's already a
    list.

Clean up a few of these.  You learn something new every day.
cmd-index.py
cmd-midx.py
git.py
helpers.py