pypa/pip — pull request #462 by dairiki (2012-02-28 01:57:14+00:00)
Title: Bug fix: do not mutate list while iterating over it.

Trivial (but important) bug fix.

An alternative, sneakier fix might be:
```
- for dir in dirs:
+ for dir in reversed(dirs):
```