Message107444
Searching the file for "raise" is sort of pointless, since exec() takes a string which might have come from anywhere, and there might be any number of exec() calls in the module. See: http://codepad.org/7EBMhb0O
There are at least two reasonable answers:
<string>:1: DeprecationWarning: raising a string exception is deprecated
raise 'two'
or:
t.py:7: DeprecationWarning: raising a string exception is deprecated
exec(x)
Either one would be fine, but randomly choosing the first line of the module where exec() is called is just nonsense.
If you want one that applies to Python 3.x, here you go: http://codepad.org/Mq1eZyoE |
|
| Date |
User |
Action |
Args |
| 2010-06-10 00:14:24 | ghazel | set | recipients:
+ ghazel, terry.reedy |
| 2010-06-10 00:14:24 | ghazel | set | messageid: <1276128864.16.0.537137296814.issue3423@psf.upfronthosting.co.za> |
| 2010-06-10 00:14:22 | ghazel | link | issue3423 messages |
| 2010-06-10 00:14:21 | ghazel | create | |
|