Commit a001b0f
committed
FIX: Use strict=False for zip with itertools.cycle
I changed two zip() calls in json/array.py from strict=True to strict=False
because the 'value' variable can be an itertools.cycle() iterator (line 145),
which is infinite. You cannot use strict=True with infinite iterators as they
don't have a defined length to compare.
Lines changed:
- Line 149: enumerate(zip(key, value, strict=False))
- Line 154: zip(key, value, strict=False)1 parent e704151 commit a001b0f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
0 commit comments