Commit e598740
committed
Fix
The function only handled strings and lists but not the dict patch
format.
This caused a hard error because `p % templates` doesn't work when `p`
is a dict --> `TypeError`.
Factor out function to extract name of patchspec and use it.
This avoids the 2 places where the bug was and simplifies the function.is_patch_for for patch dicts1 parent 354d0b6 commit e598740
2 files changed
+23
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
1280 | 1279 | | |
1281 | 1280 | | |
1282 | 1281 | | |
1283 | | - | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1284 | 1293 | | |
1285 | | - | |
| 1294 | + | |
1286 | 1295 | | |
1287 | 1296 | | |
1288 | 1297 | | |
| |||
1294 | 1303 | | |
1295 | 1304 | | |
1296 | 1305 | | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
| 1306 | + | |
1306 | 1307 | | |
1307 | | - | |
| 1308 | + | |
1308 | 1309 | | |
1309 | 1310 | | |
1310 | 1311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1381 | 1381 | | |
1382 | 1382 | | |
1383 | 1383 | | |
1384 | | - | |
| 1384 | + | |
| 1385 | + | |
1385 | 1386 | | |
1386 | 1387 | | |
1387 | 1388 | | |
| |||
1391 | 1392 | | |
1392 | 1393 | | |
1393 | 1394 | | |
1394 | | - | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1395 | 1401 | | |
| 1402 | + | |
1396 | 1403 | | |
1397 | 1404 | | |
1398 | 1405 | | |
| |||
0 commit comments