Kaydet (Commit) a664dbbf authored tarafından Fred Drake's avatar Fred Drake

Added docstring to crypt.crypt() based on the documentation.

üst b3d3956e
...@@ -22,8 +22,17 @@ static PyObject *crypt_crypt(self, args) ...@@ -22,8 +22,17 @@ static PyObject *crypt_crypt(self, args)
} }
static char crypt_crypt__doc__[] = "\
crypt(word, salt) -> string\n\
word will usually be a user's password. salt is a 2-character string\n\
which will be used to select one of 4096 variations of DES. The characters\n\
in salt must be either \".\", \"/\", or an alphanumeric character. Returns\n\
the hashed password as a string, which will be composed of characters from\n\
the same alphabet as the salt.";
static PyMethodDef crypt_methods[] = { static PyMethodDef crypt_methods[] = {
{"crypt", crypt_crypt}, {"crypt", crypt_crypt, 0, crypt_crypt__doc__},
{NULL, NULL} /* sentinel */ {NULL, NULL} /* sentinel */
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment