mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#16135: Removal of OS/2 support (Modules/*)
This commit is contained in:
parent
ab70e2ab32
commit
14c81aba50
11 changed files with 4 additions and 157 deletions
|
@ -325,11 +325,6 @@ fcntl_lockf(PyObject *self, PyObject *args)
|
|||
&lenobj, &startobj, &whence))
|
||||
return NULL;
|
||||
|
||||
#if defined(PYOS_OS2) && defined(PYCC_GCC)
|
||||
PyErr_SetString(PyExc_NotImplementedError,
|
||||
"lockf not supported on OS/2 (EMX)");
|
||||
return NULL;
|
||||
#else
|
||||
#ifndef LOCK_SH
|
||||
#define LOCK_SH 1 /* shared lock */
|
||||
#define LOCK_EX 2 /* exclusive lock */
|
||||
|
@ -383,7 +378,6 @@ fcntl_lockf(PyObject *self, PyObject *args)
|
|||
}
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
#endif /* defined(PYOS_OS2) && defined(PYCC_GCC) */
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(lockf_doc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue