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 santoso.wijaya
Recipients maker, santoso.wijaya
Date 2012-10-11.22:07:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349993241.92.0.602035338823.issue16201@psf.upfronthosting.co.za>
In-reply-to
Content
Attaching patch to trim leading and trailing whitespaces prior to processing.

Incidentally, this also means:

>>> socket.gethostbyname('')
'0.0.0.0'
>>> socket.gethostbyname(' ')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
socket.gaierror: [Errno -5] No address associated with hostname


But I'm not sure if we're okay with changing that semantics, so I left it be in this patch.
History
Date User Action Args
2012-10-11 22:07:21santoso.wijayasetrecipients: + santoso.wijaya, maker
2012-10-11 22:07:21santoso.wijayasetmessageid: <1349993241.92.0.602035338823.issue16201@psf.upfronthosting.co.za>
2012-10-11 22:07:21santoso.wijayalinkissue16201 messages
2012-10-11 22:07:21santoso.wijayacreate