Skip to content

Fix typos in the source code #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gssapi/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
"""

Expand Down
2 changes: 1 addition & 1 deletion gssapi/creds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions gssapi/raw/ext_krb5.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gssapi/raw/ext_rfc5587.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion gssapi/raw/ext_rfc6680.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions gssapi/raw/misc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion gssapi/raw/oids.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down