homepage

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 lekma
Recipients lekma, pitrou
Date 2009年12月18日.07:52:59
SpamBayes Score 1.835075e-05
Marked as misclassified No
Message-id <1261122781.79.0.382089245616.issue7523@psf.upfronthosting.co.za>
In-reply-to
Content
> - when importing fcntl, bear in mind that some systems don't have this
> module (e.g. Windows), so you should catch and silence the ImportError
would something like the following be ok?:
try:
 import fcntl
except ImportError:
 fcntl = False
and then:
if hasattr(socket, "SOCK_CLOEXEC") and fcntl:
 tests.append(CloexecLinuxConstantTest)
History
Date User Action Args
2009年12月18日 07:53:02lekmasetrecipients: + lekma, pitrou
2009年12月18日 07:53:01lekmasetmessageid: <1261122781.79.0.382089245616.issue7523@psf.upfronthosting.co.za>
2009年12月18日 07:53:00lekmalinkissue7523 messages
2009年12月18日 07:52:59lekmacreate

AltStyle によって変換されたページ (->オリジナル) /