Commit 7317e34
committed
py/objstr: Give correct behaviour when passing a dict to %-formatting.
This patch fixes two main things:
- dicts can be printed directly using '%s' % dict
- %-formatting should not crash when passed a non-dict to, eg, '%(foo)s'1 parent 87882e1 commit 7317e34
1 file changed
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
| 285 | + | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | | - | |
294 | 292 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | 293 | | |
299 | 294 | | |
300 | 295 | | |
| |||
1376 | 1371 | | |
1377 | 1372 | | |
1378 | 1373 | | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
1379 | 1378 | | |
1380 | 1379 | | |
1381 | 1380 | | |
| |||
0 commit comments