From: <pj...@us...> - 2008-07-16 02:11:49
|
Revision: 4955 http://jython.svn.sourceforge.net/jython/?rev=4955&view=rev Author: pjenvey Date: 2008-07-15 19:11:48 -0700 (Tue, 15 Jul 2008) Log Message: ----------- use getClass here incase class becomes a permanent keyword in 2.5 Modified Paths: -------------- trunk/jython/Lib/socket.py Modified: trunk/jython/Lib/socket.py =================================================================== --- trunk/jython/Lib/socket.py 2008-07-16 01:18:14 UTC (rev 4954) +++ trunk/jython/Lib/socket.py 2008-07-16 02:11:48 UTC (rev 4955) @@ -518,7 +518,7 @@ results = [] for a in java.net.InetAddress.getAllByName(host): if len([f for f in filter_fns if f(a)]): - family = {java.net.Inet4Address: AF_INET, java.net.Inet6Address: AF_INET6}[a.class] + family = {java.net.Inet4Address: AF_INET, java.net.Inet6Address: AF_INET6}[a.getClass()] # TODO: Include flowinfo and scopeid in a 4-tuple for IPv6 addresses results.append( (family, socktype, proto, a.getCanonicalHostName(), (a.getHostAddress(), port)) ) return results This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |