1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Hi guys, |
5 |
|
6 |
while looking through portage code, I saw, that portage_dep.strip_empty |
7 |
also modifies the passed list _in place_: |
8 |
|
9 |
|>> l = [0,1,2,3,4] |
10 |
|>> strip_empty(l) |
11 |
[1, 2, 3, 4] |
12 |
|>> l |
13 |
[1, 2, 3, 4] |
14 |
|
15 |
I don't know if this is wanted behavior - but as it is not documented, I |
16 |
doubt it :) |
17 |
|
18 |
Thus - a small patch: And now using filter for this task :). I hope |
19 |
nothing relies on the side-effect desribed above. |
20 |
|
21 |
Regards, |
22 |
Necoro |
23 |
-----BEGIN PGP SIGNATURE----- |
24 |
Version: GnuPG v2.0.7 (GNU/Linux) |
25 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
26 |
|
27 |
iD8DBQFH2CUK4UOg/zhYFuARAp+PAJ9sLQ/M7OQGTLZN8RBaOwEdvKZ9tACeIq51 |
28 |
DqAXNQHuM9CqoFaR14EiRyQ= |
29 |
=Nb2a |
30 |
-----END PGP SIGNATURE----- |