Bug#663927: python2.7: urllib throws socket.timeout error instead of urllib2.URLError

2012-11-12 Thread Stilgar aka Eugeniusz Gilewski
I can reproduce that every time on Debian Wheezy/Sid (2.7.3~rc2-1 as well as 2.7.3-3 from Sid). Also it it can be reproduced on Python 3 (3.2.3-5): >>> import urllib.request >>> urllib.request.urlopen("http://linux.org.ru/";, timeout=0.1) Traceback (most recent call last): File "", line 1, in

Bug#663927: python2.7: urllib throws socket.timeout error instead of urllib2.URLError

2012-04-05 Thread Matthias Klose
On 14.03.2012 02:04, Christophe Combelles wrote: Package: python2.7 Version: 2.7.3~rc1-1 Severity: important I get randomly a different error than what should be expected on that situation. The normal behaviour is to get urllib2.URLError. I often get a direct socket.timeout error. I could not re

Bug#663927: python2.7: urllib throws socket.timeout error instead of urllib2.URLError

2012-03-14 Thread Christophe Combelles
Package: python2.7 Version: 2.7.3~rc1-1 Severity: important I get randomly a different error than what should be expected on that situation. The normal behaviour is to get urllib2.URLError. I often get a direct socket.timeout error. I could not reproduce this on python2.4, python2.6 and on a hand-