This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author exarkun
Recipients exarkun, georg.brandl
Date 2009-09-05.17:57:54
SpamBayes Score 4.3826054e-13
Marked as misclassified No
Message-id <1252173476.49.0.418994045744.issue6843@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-09-05 17:57:56exarkunsetrecipients: + exarkun, georg.brandl
2009-09-05 17:57:56exarkunsetmessageid: <1252173476.49.0.418994045744.issue6843@psf.upfronthosting.co.za>
2009-09-05 17:57:55exarkunlinkissue6843 messages
2009-09-05 17:57:54exarkuncreate