pgen.c: Write a `pgen' status code as `PGST' consistently in docstrings.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 22 Nov 2019 18:34:56 +0000 (18:34 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 Nov 2019 17:43:08 +0000 (17:43 +0000)
pgen.c

diff --git a/pgen.c b/pgen.c
index 6444225..8e1911b 100644 (file)
--- a/pgen.c
+++ b/pgen.c
@@ -634,12 +634,12 @@ static PyObject *pgev_stdev(pgen_proc *proc)
 
 static PyMethodDef pgev_pymethods[] = {
 #define METHNAME(name) pgmeth_##name
-  METH (pg_abort,      "E.pg_abort(EV) -> PGRC -- prime generation aborted")
-  METH (pg_done,       "E.pg_done(EV) -> PGRC -- prime generation finished")
-  METH (pg_begin,     "E.pg_begin(EV) -> PGRC -- commence stepping/testing")
-  METH (pg_try,        "E.pg_try(EV) -> PGRC -- found new candidate")
-  METH (pg_pass,       "E.pg_pass(EV) -> PGRC -- passed primality test")
-  METH (pg_fail,       "E.pg_fail(EV) -> PGRC -- failed primality test")
+  METH (pg_abort,      "E.pg_abort(EV) -> PGST -- prime generation aborted")
+  METH (pg_done,       "E.pg_done(EV) -> PGST -- prime generation finished")
+  METH (pg_begin,     "E.pg_begin(EV) -> PGST -- commence stepping/testing")
+  METH (pg_try,        "E.pg_try(EV) -> PGST -- found new candidate")
+  METH (pg_pass,       "E.pg_pass(EV) -> PGST -- passed primality test")
+  METH (pg_fail,       "E.pg_fail(EV) -> PGST -- failed primality test")
 #undef METHNAME
   { 0 }
 };
@@ -1051,7 +1051,7 @@ end:
 
 static PyMethodDef methods[] = {
 #define METHNAME(name) meth_##name
-  METH (_PrimeFilter_smallfactor,      "smallfactor(X) -> PGRC")
+  METH (_PrimeFilter_smallfactor,      "smallfactor(X) -> PGST")
   METH (_RabinMiller_iters,            "iters(NBITS) -> NITERS")
   KWMETH(pgen,                         "\
 pgen(START, [name = 'p'[, [stepper = PrimeGenStepper(2)],\n\