Message96551
| 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:02 | lekma | set | recipients:
+ lekma, pitrou |
| 2009年12月18日 07:53:01 | lekma | set | messageid: <1261122781.79.0.382089245616.issue7523@psf.upfronthosting.co.za> |
| 2009年12月18日 07:53:00 | lekma | link | issue7523 messages |
| 2009年12月18日 07:52:59 | lekma | create |
|