From 131384b107fb54e37e31f8fc19be8ab8fcffd929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Fri, 13 Oct 2023 09:18:45 +0200 Subject: [PATCH] python,doc: Fix typos in documentation and source code comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- Anonymous contribution Signed-off-by: Ingo Klöcker --- lang/python/doc/texinfo/texinfo.tex | 2 +- lang/python/gpgme.i | 2 +- lang/python/src/core.py | 6 +++--- lang/python/tests/t-quick-key-manipulation.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lang/python/doc/texinfo/texinfo.tex b/lang/python/doc/texinfo/texinfo.tex index a5c849c8..a505e733 100644 --- a/lang/python/doc/texinfo/texinfo.tex +++ b/lang/python/doc/texinfo/texinfo.tex @@ -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{% diff --git a/lang/python/gpgme.i b/lang/python/gpgme.i index 87371af8..2484d34d 100644 --- a/lang/python/gpgme.i +++ b/lang/python/gpgme.i @@ -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" %} diff --git a/lang/python/src/core.py b/lang/python/src/core.py index c7b312b8..152ea295 100644 --- a/lang/python/src/core.py +++ b/lang/python/src/core.py @@ -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 diff --git a/lang/python/tests/t-quick-key-manipulation.py b/lang/python/tests/t-quick-key-manipulation.py index 73dce16d..81da03be 100755 --- a/lang/python/tests/t-quick-key-manipulation.py +++ b/lang/python/tests/t-quick-key-manipulation.py @@ -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"