diff --git a/dbus_next/auth.py b/dbus_next/auth.py index db91c86..e8e14ad 100644 --- a/dbus_next/auth.py +++ b/dbus_next/auth.py @@ -78,8 +78,8 @@ def _receive_line(self, line: str): raise AuthError(f'authentication failed: {response.value}: {args}') -class AuthAnnonymous(Authenticator): - """An authenticator class for the annonymous auth protocol for use with the +class AuthAnonymous(Authenticator): + """An authenticator class for the anonymous auth protocol for use with the :class:`MessageBus `. :sealso: https://dbus.freedesktop.org/doc/dbus-specification.html#auth-protocol @@ -87,7 +87,7 @@ class AuthAnnonymous(Authenticator): def _authentication_start(self, negotiate_unix_fd=False) -> str: if negotiate_unix_fd: raise AuthError( - 'annonymous authentication does not support negotiating unix fds right now') + 'anonymous authentication does not support negotiating unix fds right now') return 'AUTH ANONYMOUS' @@ -98,3 +98,6 @@ def _receive_line(self, line: str) -> str: raise AuthError(f'authentication failed: {response.value}: {args}') return 'BEGIN' + +# backwards compatibility +AuthAnnonymous = AuthAnonymous diff --git a/docs/authentication.rst b/docs/authentication.rst index 6749c67..639eff2 100644 --- a/docs/authentication.rst +++ b/docs/authentication.rst @@ -6,4 +6,4 @@ Classes for the DBus `authentication protocol