# HG changeset patch # User paulb # Date 1113242032 0 # Node ID 06fde0b81b28884dc267cfc2ac6ccc9ac6b69336 # Parent 6de0f6fe5959173149a8539a9200e16d6ea4aa9b [project @ 2005-04-11 17:53:52 by paulb] Added a missing conversion to string. Note that a bizarre warning appears from nowhere with this code: "DeprecationWarning: IPv4Address.__getitem__ is deprecated. Use attributes instead." diff -r 6de0f6fe5959 -r 06fde0b81b28 WebStack/Twisted.py --- a/WebStack/Twisted.py Mon Apr 11 17:43:21 2005 +0000 +++ b/WebStack/Twisted.py Mon Apr 11 17:53:52 2005 +0000 @@ -54,7 +54,7 @@ "Returns the server port as a string." - return self.trans.getHost()[2] + return str(self.trans.getHost()[2]) # Request-related methods.