durusmail: quixote-users: Twisted server - depreciation warnings
Twisted server - depreciation warnings
2005-03-01
2005-03-07
2005-03-07
2005-03-07
Twisted server - depreciation warnings
Graham Fawcett
2005-03-07
On Tue, 1 Mar 2005 22:27:09 +0000, Paul Moore  wrote:
> When I run my Quixote application under the twisted server, I get
> depreciation errors as follows:
>
> C:\Apps\Python24\lib\site-packages\quixote\server\twisted_server.py:56:
> DeprecationWarning: IPv4Address.__getitem__ is deprecated.  Use
> attributes instead.

> I'm not at all sure where these warnings come from - Quixote, twisted,
> or where. I know I can suppress or ignore the messages, but they
> (mildly) annoy me, and I'd like to understand where they are from.

The warnings are from quixote.server.twisted_server, which is making
calls to deprecated sections of the Twisted API. As you know, you can
safely ignore the warnings (or suppress them via the 'warnings'
module). Someone with some Twisted chops should probably rewrite this
script at some point to keep in line with the newer Twisted API.

-- Graham

reply