Message92286
Thanks for that Georg.
I'm still having trouble with this. I'm aware that the issue tracking
isn't the right place to ask for help with writing programs, but I think
that since I still can't get this code to work, even looking at the new
documentation, there is still a documentation issue. Perhaps there's
something else I'm doing wrong, though.
The code causing the warning to be emitted is here:
http://twistedmatrix.com/trac/browser/trunk/twisted/conch/ssh/filetransfer.py?rev=27062#L829
It's a simple example of the new-in-2.6 BaseException.message
deprecation warning. I'm trying to suppress this. My attempt goes
something like this:
warnings.filterwarnings(
'ignore',
message='BaseException.message has been deprecated as of Python 2.6',
category=DeprecationWarning,
module=r'twisted\.conch\.ssh\.filetransfer')
When I remove the module argument from this call, the warning is
suppressed. When I include it, it is not. The string given seems to be
"a string containing a regular expression that the module name must
match", the meaning the documentation suggests. Am I just doing
something wrong, or are the docs still not right? |
|
Date |
User |
Action |
Args |
2009-09-05 17:57:56 | exarkun | set | recipients:
+ exarkun, georg.brandl |
2009-09-05 17:57:56 | exarkun | set | messageid: <1252173476.49.0.418994045744.issue6843@psf.upfronthosting.co.za> |
2009-09-05 17:57:55 | exarkun | link | issue6843 messages |
2009-09-05 17:57:54 | exarkun | create | |
|