Commit 9b975be
amaury.forgeotdarc
Issue2221: in Idle, exec('xx') raised a SystemError('error return without exception set')
instead of the expected NameError
This happens when sys.stdout is redirected to something that cannot flush().
the flush_io() function must be exception-neutral: don't raise, and don't clear exceptions.
Next step: exec() is not supposed to flush sys.stdout...
git-svn-id: http://svn.python.org/projects/python/branches/py3k@62157 6015fed2-1504-0410-9fe1-9d1591cc47711 parent deb941d commit 9b975be
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
451 | 462 | | |
452 | 463 | | |
453 | 464 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1467 | 1467 | | |
1468 | 1468 | | |
1469 | 1469 | | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
1470 | 1475 | | |
1471 | 1476 | | |
1472 | 1477 | | |
| |||
1483 | 1488 | | |
1484 | 1489 | | |
1485 | 1490 | | |
| 1491 | + | |
| 1492 | + | |
1486 | 1493 | | |
1487 | 1494 | | |
1488 | 1495 | | |
| |||
0 commit comments