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:
parent
bd448c9cbf
commit
131384b107
@ -498,7 +498,7 @@
|
|||||||
% \def\foo{\parsearg\Xfoo}
|
% \def\foo{\parsearg\Xfoo}
|
||||||
% \def\Xfoo#1{...}
|
% \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
|
% favourite TeX trick. --kasal, 16nov03
|
||||||
|
|
||||||
\def\parseargdef#1{%
|
\def\parseargdef#1{%
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
%ignore HAVE_CXX11;
|
%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. */
|
* deprecated but we need to keep them. Silence the warning. */
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
%}
|
%}
|
||||||
|
@ -813,7 +813,7 @@ class Context(GpgmeWrapper):
|
|||||||
Keyword arguments:
|
Keyword arguments:
|
||||||
algorithm -- public key algorithm, see above (default: reasonable)
|
algorithm -- public key algorithm, see above (default: reasonable)
|
||||||
expires_in -- expiration time in seconds (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)
|
sign -- request the signing capability (see above)
|
||||||
encrypt -- request the encryption capability (see above)
|
encrypt -- request the encryption capability (see above)
|
||||||
certify -- request the certification capability (see above)
|
certify -- request the certification capability (see above)
|
||||||
@ -901,7 +901,7 @@ class Context(GpgmeWrapper):
|
|||||||
Keyword arguments:
|
Keyword arguments:
|
||||||
algorithm -- public key algorithm, see above (default: reasonable)
|
algorithm -- public key algorithm, see above (default: reasonable)
|
||||||
expires_in -- expiration time in seconds (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)
|
sign -- request the signing capability (see above)
|
||||||
encrypt -- request the encryption capability (see above)
|
encrypt -- request the encryption capability (see above)
|
||||||
authenticate -- request the authentication 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
|
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
|
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:
|
Keyword arguments:
|
||||||
data_cb -- a callback receiving data lines
|
data_cb -- a callback receiving data lines
|
||||||
|
@ -88,7 +88,7 @@ with support.EphemeralContext() as ctx:
|
|||||||
except gpg.errors.GpgError:
|
except gpg.errors.GpgError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# try to add an pre-existent UID
|
# try to add a pre-existent UID
|
||||||
try:
|
try:
|
||||||
ctx.key_add_uid(key, bravo)
|
ctx.key_add_uid(key, bravo)
|
||||||
assert False, "Expected an error but got none"
|
assert False, "Expected an error but got none"
|
||||||
|
Loading…
Reference in New Issue
Block a user