From 63d48ea5a92d2de10a860a9d6573b690b17ef3f8 Mon Sep 17 00:00:00 2001 From: Guinness Date: Sat, 22 Jan 2022 17:04:47 +0100 Subject: [PATCH] Fix typos in the source code --- gssapi/_utils.py | 2 +- gssapi/creds.py | 2 +- gssapi/raw/ext_krb5.pyx | 4 ++-- gssapi/raw/ext_rfc5587.pyx | 2 +- gssapi/raw/ext_rfc6680.pyx | 2 +- gssapi/raw/misc.pyx | 4 ++-- gssapi/raw/oids.pyx | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gssapi/_utils.py b/gssapi/_utils.py index d2da9e81..bf848b8d 100644 --- a/gssapi/_utils.py +++ b/gssapi/_utils.py @@ -120,7 +120,7 @@ def catch_and_return_token(func, self, *args, **kwargs): catch and save their :python:`GSSError` exceptions and instead return the result token attached to the exception. - The exception can be later retrived through :python:`_last_err` + The exception can be later retrieved through :python:`_last_err` (and :python:`_last_tb` when Python 2 is in use). """ diff --git a/gssapi/creds.py b/gssapi/creds.py index 888fea50..9f9b2f44 100644 --- a/gssapi/creds.py +++ b/gssapi/creds.py @@ -274,7 +274,7 @@ def inquire_by_mech(self, mech, name=True, init_lifetime=True, about them. Args: - mech (~gssapi.OID): the mechanism for which to retrive the + mech (~gssapi.OID): the mechanism for which to retrieve the information name (bool): get the name associated with the credentials init_lifetime (bool): get the remaining initiate lifetime for diff --git a/gssapi/raw/ext_krb5.pyx b/gssapi/raw/ext_krb5.pyx index 3ac36b64..eace3870 100644 --- a/gssapi/raw/ext_krb5.pyx +++ b/gssapi/raw/ext_krb5.pyx @@ -319,7 +319,7 @@ def krb5_export_lucid_sec_context(SecurityContext context not None, OM_uint32 version): """ krb5_export_lucid_sec_context(context, version) - Retuns a non-opaque version of the internal context info. + Returns a non-opaque version of the internal context info. Gets information about the Kerberos security context passed in. Currently only version 1 is known and supported by this library. @@ -500,7 +500,7 @@ def krb5_get_tkt_flags(SecurityContext context not None): Note: Heimdal can only get the tkt flags on the acceptor security context. - MIT is able to get the tkt flags on initators and acceptors. + MIT is able to get the tkt flags on initiators and acceptors. Args: context (~gssapi.raw.sec_contexts.SecurityContext): the security diff --git a/gssapi/raw/ext_rfc5587.pyx b/gssapi/raw/ext_rfc5587.pyx index ca669023..674076c5 100644 --- a/gssapi/raw/ext_rfc5587.pyx +++ b/gssapi/raw/ext_rfc5587.pyx @@ -117,7 +117,7 @@ def display_mech_attr(OID attr): Returns information about attributes in human readable form. Args: - attr (~gssapi.OID): Mechanism attribute to retrive names and + attr (~gssapi.OID): Mechanism attribute to retrieve names and descriptions of Returns: diff --git a/gssapi/raw/ext_rfc6680.pyx b/gssapi/raw/ext_rfc6680.pyx index 94f52708..af5470ec 100644 --- a/gssapi/raw/ext_rfc6680.pyx +++ b/gssapi/raw/ext_rfc6680.pyx @@ -79,7 +79,7 @@ def inquire_name(Name name not None, mech_name=True, attrs=True): inquire_name(name, mech_name=True, attrs=True) Get information about a Name. - This method retrives information about the given name, including + This method retrieves information about the given name, including the set of attribute names for the given name, as well as whether or not the name is a mechanism name. Additionally, if the given name is a mechanism name, the associated mechansim is returned as well. diff --git a/gssapi/raw/misc.pyx b/gssapi/raw/misc.pyx index c16a0431..80ac4bd7 100644 --- a/gssapi/raw/misc.pyx +++ b/gssapi/raw/misc.pyx @@ -56,7 +56,7 @@ def inquire_names_for_mech(OID mech not None): inquire_names_for_mech(mech) Get the name types supported by a mechanism. - This method retrives the different name types supported by + This method retrieves the different name types supported by the given mechanism. Args: @@ -252,7 +252,7 @@ class GSSError(Exception, metaclass=GSSErrorRegistry): Create a new GSSError. This method creates a new GSSError, - retrieves the releated human-readable + retrieves the related human-readable string messages, and uses the results to construct an exception message diff --git a/gssapi/raw/oids.pyx b/gssapi/raw/oids.pyx index b0bd5546..d919754e 100644 --- a/gssapi/raw/oids.pyx +++ b/gssapi/raw/oids.pyx @@ -18,7 +18,7 @@ cdef class OID: to the constructor. The `elements` argument should be a `bytes` consisting of the BER-encoded values in the OID. - To retrive the underlying bytes, use the :func:`bytes` + To retrieve the underlying bytes, use the :func:`bytes` function in Python 3 or the :meth:`__bytes__` method directly in Python 2.