Commit 5bd6a79
committed
Python 3 preparation: use sum() instead of reduce().
reduce() has changed from a built-in function to something in
functools in Python 3. However, since both uses were with
operator.add / operator.__add__, it seemed to make more sense to use
sum() instead of functools.reduce().1 parent 2e0c8ba commit 5bd6a79
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| |||
0 commit comments