summaryrefslogtreecommitdiff
path: root/Modules/_cryptmodule.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2014-02-08 22:15:29 -0800
committerLarry Hastings <larry@hastings.org>2014-02-08 22:15:29 -0800
commit2623c8c23cead505a78ec416072223552e94727e (patch)
tree9ac129d693fd98eb33d548bc836d89e006bbb937 /Modules/_cryptmodule.c
parent09f08fe2483aaefba367c6b0b4654c3490a32c42 (diff)
downloadcpython-git-2623c8c23cead505a78ec416072223552e94727e.tar.gz
Issue #20530: Argument Clinic's signature format has been revised again.
The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4.
Diffstat (limited to 'Modules/_cryptmodule.c')
-rw-r--r--Modules/_cryptmodule.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_cryptmodule.c b/Modules/_cryptmodule.c
index 7531c2fc99..da44ef34ee 100644
--- a/Modules/_cryptmodule.c
+++ b/Modules/_cryptmodule.c
@@ -30,7 +30,9 @@ results for a given *word*.
[clinic start generated code]*/
PyDoc_STRVAR(crypt_crypt__doc__,
-"sig=($module, word, salt)\n"
+"crypt($module, word, salt, /)\n"
+"--\n"
+"\n"
"Hash a *word* with the given *salt* and return the hashed password.\n"
"\n"
"*word* will usually be a user\'s password. *salt* (either a random 2 or 16\n"
@@ -63,7 +65,7 @@ exit:
static PyObject *
crypt_crypt_impl(PyModuleDef *module, const char *word, const char *salt)
-/*[clinic end generated code: output=c7443257e03fca92 input=4d93b6d0f41fbf58]*/
+/*[clinic end generated code: output=3eaacdf994a6ff23 input=4d93b6d0f41fbf58]*/
{
/* On some platforms (AtheOS) crypt returns NULL for an invalid
salt. Return None in that case. XXX Maybe raise an exception? */