Skip to content
Snippets Groups Projects
Commit 1cddfe26 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

DEP: depricate get_username

parent 54ef02bf
No related branches found
No related tags found
2 merge requests!149Release 0.15.1,!145F deprecate getusername
Pipeline #53099 passed with warnings
...@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### ### Changed ###
### Deprecated ### ### Deprecated ###
- `connection.get_username`. Use `la.Info().user_info.name` instead.
### Removed ### ### Removed ###
......
...@@ -757,6 +757,8 @@ class _Connection(object): # pylint: disable=useless-object-inheritance ...@@ -757,6 +757,8 @@ class _Connection(object): # pylint: disable=useless-object-inheritance
Shortcut for: get_connection()._authenticator._credentials_provider.username Shortcut for: get_connection()._authenticator._credentials_provider.username
""" """
warnings.warn("Deprecated. Please use ``la.Info().user_info.name`` instead.",
DeprecationWarning)
if self._authenticator is None: if self._authenticator is None:
raise ValueError( raise ValueError(
"No authenticator set. Please call configure_connection() first.") "No authenticator set. Please call configure_connection() first.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment