Message7170
Short -W* options don't work in Jython. Warnings don't work at all in Jython 2.7 (regression).
$ python2.7 -Wd -c 'import md5'
-c:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead
$ python2.7 -Wdefault -c 'import md5'
-c:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead
$ jython2.7 -Wd -c 'import md5'
Invalid -W option ignored: invalid action: 'd'
$ jython2.7 -Wdefault -c 'import md5'
$ jython2.5 -c 'import warnings; warnings.warn("Some warning", DeprecationWarning)'
-c:1: DeprecationWarning: Some warning
$ jython2.7 -c 'import warnings; warnings.warn("Some warning", DeprecationWarning)'
$ jython2.7 -Wdefault -c 'import warnings; warnings.warn("Some warning", DeprecationWarning)'
$ |
|
Date |
User |
Action |
Args |
2012-05-30 01:57:14 | Arfrever | set | recipients:
+ Arfrever |
2012-05-30 01:57:14 | Arfrever | set | messageid: <1338343034.26.0.159513176319.issue1906@psf.upfronthosting.co.za> |
2012-05-30 01:57:14 | Arfrever | link | issue1906 messages |
2012-05-30 01:57:13 | Arfrever | create | |
|