Message7170

Author Arfrever
Recipients Arfrever
Date 2012-05-30.01:57:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338343034.26.0.159513176319.issue1906@psf.upfronthosting.co.za>
In-reply-to
Content
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)'
$
History
Date User Action Args
2012-05-30 01:57:14Arfreversetrecipients: + Arfrever
2012-05-30 01:57:14Arfreversetmessageid: <1338343034.26.0.159513176319.issue1906@psf.upfronthosting.co.za>
2012-05-30 01:57:14Arfreverlinkissue1906 messages
2012-05-30 01:57:13Arfrevercreate