mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Patch #488073: AtheOS port.
This commit is contained in:
parent
7981ce576c
commit
f90ae20354
23 changed files with 1782 additions and 17 deletions
|
|
@ -17,7 +17,9 @@ static PyObject *crypt_crypt(PyObject *self, PyObject *args)
|
|||
if (!PyArg_ParseTuple(args, "ss:crypt", &word, &salt)) {
|
||||
return NULL;
|
||||
}
|
||||
return PyString_FromString( crypt( word, salt ) );
|
||||
/* On some platforms (AtheOS) crypt returns NULL for an invalid
|
||||
salt. Return None in that case. XXX Maybe raise an exception? */
|
||||
return Py_BuildValue("s", crypt(word, salt));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue