This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients exarkun, giampaolo.rodola, janssen, pitrou
Date 2010-08-29.19:44:05
SpamBayes Score 1.2823489e-08
Marked as misclassified No
Message-id <1283111042.3369.22.camel@localhost.localdomain>
In-reply-to <1283110425.04.0.733084893959.issue9706@psf.upfronthosting.co.za>
Content
> @Antoine: ok, thanks.
> 
> This is now committed in r84352.

I don't think it's ok to test for the IOError message ("No such file"),
because it comes from the OS and can therefore change from platform to
platform. Instead, you should check the value of the "errno" attribute
on the IOError objects.

Also:

+            except IOError as x:
+                if support.verbose:
+                    sys.stdout.write("\nsocket.error is %s\n" % str(x))

The message should be changed (IOError instead of socket.error).
History
Date User Action Args
2010-08-29 19:44:07pitrousetrecipients: + pitrou, exarkun, janssen, giampaolo.rodola
2010-08-29 19:44:05pitroulinkissue9706 messages
2010-08-29 19:44:05pitroucreate