python,doc: Fix typos in documentation and source code comments

--

Anonymous contribution

Signed-off-by: Ingo Klöcker <dev@ingo-kloecker.de>
This commit is contained in:
Ingo Klöcker 2023-10-13 09:18:45 +02:00
parent bd448c9cbf
commit 131384b107
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9
4 changed files with 6 additions and 6 deletions

View File

@ -498,7 +498,7 @@
% \def\foo{\parsearg\Xfoo}
% \def\Xfoo#1{...}
%
% Actually, I use \csname\string\foo\endcsname, ie. \\foo, as it is my
% Actually, I use \csname\string\foo\endcsname, i.e. \\foo, as it is my
% favourite TeX trick. --kasal, 16nov03
\def\parseargdef#1{%

View File

@ -26,7 +26,7 @@
%ignore HAVE_CXX11;
%{
/* We use public symbols (eg. "_obsolete_class") which are marked as
/* We use public symbols (e.g. "_obsolete_class") which are marked as
* deprecated but we need to keep them. Silence the warning. */
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
%}

View File

@ -813,7 +813,7 @@ class Context(GpgmeWrapper):
Keyword arguments:
algorithm -- public key algorithm, see above (default: reasonable)
expires_in -- expiration time in seconds (default: reasonable)
expires -- whether or not the key should expire (default: True)
expires -- whether the key should expire (default: True)
sign -- request the signing capability (see above)
encrypt -- request the encryption capability (see above)
certify -- request the certification capability (see above)
@ -901,7 +901,7 @@ class Context(GpgmeWrapper):
Keyword arguments:
algorithm -- public key algorithm, see above (default: reasonable)
expires_in -- expiration time in seconds (default: reasonable)
expires -- whether or not the subkey should expire (default: True)
expires -- whether the subkey should expire (default: True)
sign -- request the signing capability (see above)
encrypt -- request the encryption capability (see above)
authenticate -- request the authentication capability (see above)
@ -1032,7 +1032,7 @@ class Context(GpgmeWrapper):
If command is a string or bytes, it will be used as-is. If it
is an iterable of strings, it will be properly escaped and
joined into an well-formed assuan command.
joined into a well-formed assuan command.
Keyword arguments:
data_cb -- a callback receiving data lines

View File

@ -88,7 +88,7 @@ with support.EphemeralContext() as ctx:
except gpg.errors.GpgError:
pass
# try to add an pre-existent UID
# try to add a pre-existent UID
try:
ctx.key_add_uid(key, bravo)
assert False, "Expected an error but got none"