Diff for /ECHO_content/Attic/timeoutsocket.py between versions 1.1 and 1.2

version 1.1, 2004/08/17 15:22:14 version 1.2, 2004/08/18 12:41:00
Line 98  if not hasattr(socket, "_no_timeoutsocke Line 98  if not hasattr(socket, "_no_timeoutsocke
 else:  else:
     _socket = socket._no_timeoutsocket      _socket = socket._no_timeoutsocket
   
   
 #  #
 # Set up constants to test for Connected and Blocking operations.  # Set up constants to test for Connected and Blocking operations.
 # We delete 'os' and 'errno' to keep our namespace clean(er).  # We delete 'os' and 'errno' to keep our namespace clean(er).
Line 142  class Timeout(Exception): Line 141  class Timeout(Exception):
 from socket import AF_INET, SOCK_STREAM  from socket import AF_INET, SOCK_STREAM
 def timeoutsocket(family=AF_INET, type=SOCK_STREAM, proto=None):  def timeoutsocket(family=AF_INET, type=SOCK_STREAM, proto=None):
     if family != AF_INET or type != SOCK_STREAM:      if family != AF_INET or type != SOCK_STREAM:
   
         if proto:          if proto:
             return _socket(family, type, proto)              return _socket(family, type, proto)
         else:          else:

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>