Jean-Paul Calderone <exar...@divmod.com> added the comment: 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? ---------- status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6843> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com