diff --git a/CHANGELOG.md b/CHANGELOG.md index 20a4e442bc8beb0171b44f57e60f5a7af6a2c69c..1592ac685731f0e132a2317559335f3fed924fa2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed ### ### Deprecated ### +- `connection.get_username`. Use `la.Info().user_info.name` instead. ### Removed ### diff --git a/src/linkahead/connection/connection.py b/src/linkahead/connection/connection.py index 294d9457d064f03bbe06a3347b2d2064dcf12b8c..c95134fed3fd6b031b01b518c6362bf3b371c960 100644 --- a/src/linkahead/connection/connection.py +++ b/src/linkahead/connection/connection.py @@ -757,6 +757,8 @@ class _Connection(object): # pylint: disable=useless-object-inheritance 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: raise ValueError( "No authenticator set. Please call configure_connection() first.")