Record that FCNTL.py has gone away; remove FCNTL hack in tempfile.py;
another hack remains in test___all__.py, but the problem that one addresses is more general than *just* FCNTL, so leaving it alone.
This commit is contained in:
parent
9516609b6b
commit
90ee7eb18e
@ -38,17 +38,15 @@ if _os.name == 'mac':
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
import fcntl as _fcntl
|
import fcntl as _fcntl
|
||||||
# If PYTHONCASEOK is set on Windows, stinking FCNTL.py gets
|
except ImportError:
|
||||||
# imported, and we don't get an ImportError then. Provoke
|
|
||||||
# an AttributeError instead in that case.
|
|
||||||
_fcntl.fcntl
|
|
||||||
except (ImportError, AttributeError):
|
|
||||||
def _set_cloexec(fd):
|
def _set_cloexec(fd):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
def _set_cloexec(fd):
|
def _set_cloexec(fd):
|
||||||
try: flags = _fcntl.fcntl(fd, _fcntl.F_GETFD, 0)
|
try:
|
||||||
except IOError: pass
|
flags = _fcntl.fcntl(fd, _fcntl.F_GETFD, 0)
|
||||||
|
except IOError:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
# flags read successfully, modify
|
# flags read successfully, modify
|
||||||
flags |= _fcntl.FD_CLOEXEC
|
flags |= _fcntl.FD_CLOEXEC
|
||||||
|
@ -34,6 +34,11 @@ Extension modules
|
|||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- The obsolete FCNTL.py has been deleted. The builtin fcntl module
|
||||||
|
has been available (on platforms that support fcntl) since Python
|
||||||
|
1.5a3, and all FCNTL.py did is export fcntl's names, after generating
|
||||||
|
a deprecation warning telling you to use fcntl directly.
|
||||||
|
|
||||||
- Several new unicode codecs are added: big5hkscs, euc_jis_2004,
|
- Several new unicode codecs are added: big5hkscs, euc_jis_2004,
|
||||||
iso2022_jp_2004, shift_jis_2004.
|
iso2022_jp_2004, shift_jis_2004.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user