]> granicus.if.org Git - python/commit
Windows fix: When PYTHONCASEOK is set, or for any other reason imports
authorTim Peters <tim.peters@gmail.com>
Tue, 22 Jul 2003 02:50:01 +0000 (02:50 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 22 Jul 2003 02:50:01 +0000 (02:50 +0000)
commit291f14e3d386714ea937489e1863bed7f818a970
treef2b38ea809507e844dfded6ccde43e328470eaa7
parentf1c9869ab016f041d2ae9e63b1e17983cc8a2826
Windows fix:  When PYTHONCASEOK is set, or for any other reason imports
are satisfied in a case-insensitive manner, the attempt to import (the
non-existent) fcntl gets satisfied by FCNTL.py instead, and the tempfile
module defines a Unix-specific _set_cloexec() function in that case.  As
a result, temp files can't be created then (blows up with an AttributeError
trying to reference fcntl.fcntl).  This just popped up in the spambayes
project, where there is no apparent workaround (which is why I'm pushing
this in now).
Lib/tempfile.py
Misc/NEWS