Commit 1a643ed
Fix: wrap fail.items() in list() to prevent Py2->Py3 dict mutation error
In Python 2, dict.items() returned a list copy; in Python 3 it returns
a view, so calling fail.pop(key) inside the loop raises RuntimeError.
Fixed in batch_create, batch_update, and batch_replace.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Change-Id: I38627dfab8cec6e3243fa0960f2b309e89759fce
Reviewed-on: https://review.couchbase.org/c/TAF/+/245679
Tested-by: Ashwin <ashwin.govindarajulu@couchbase.com>
Reviewed-by: Ashwin <ashwin.govindarajulu@couchbase.com>1 parent 5eab5f1 commit 1a643ed
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
1102 | | - | |
| 1102 | + | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | | - | |
| 1150 | + | |
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
| |||
1197 | 1197 | | |
1198 | 1198 | | |
1199 | 1199 | | |
1200 | | - | |
| 1200 | + | |
1201 | 1201 | | |
1202 | 1202 | | |
1203 | 1203 | | |
| |||
0 commit comments