Olivier Berger <olivier.ber...@telecom-sudparis.eu> writes:

> I'm tempted to think that it may even no longer be needed at all,

It's only needed for Python 2.2 and earlier; it should be quite safe to
replace with the built-in equivalents on any modern version of
Python. (You may find that programs aren't using it anyway if they spot
the modern version is available; e.g. feedparser and rawdog both used to
use timeoutsocket as a fallback, and have removed this more recently
when dropping support for older Python versions.)

If you've got code that used to do:

  timeoutsocket.setDefaultSocketTimeout(n)   # the most common usage
  somesocket.set_timeout(n)
  somesocket.get_timeout()

then the modern equivalents are:

  socket.setdefaulttimeout(n)
  somesocket.settimeout(n)
  somesocket.gettimeout()

Thanks,

-- 
Adam Sampson <a...@offog.org>                         <http://offog.org/>


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/y2afvo89flc....@cartman.at.offog.org

Reply via email to