Commit 80a3766
build: use list for mutable retval rather than tuple
We define `retval` as a tuple and then replace the tuple by "appending"
items with `+=` but that actually creates a new tuple every time.
Because it is intended to be mutable, use a list instead, then return a
tuple from the function, as it should be immutable outside the function.
PR-URL: #41372
Reviewed-By: Christian Clauss <cclauss@me.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent 0768302 commit 80a3766Copy full SHA for 80a3766
File tree
Expand file treeCollapse file tree
1 file changed
+3
-3
lines changedOpen diff view settings
Filter options
Expand file treeCollapse file tree
1 file changed
+3
-3
lines changedOpen diff view settings
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
828 | 828 | |
829 | 829 | |
830 | 830 | |
831 | | - |
| 831 | + |
832 | 832 | |
833 | 833 | |
834 | 834 | |
| ||
843 | 843 | |
844 | 844 | |
845 | 845 | |
846 | | - |
| 846 | + |
847 | 847 | |
848 | | - |
| 848 | + |
849 | 849 | |
850 | 850 | |
851 | 851 | |
|
0 commit comments