Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle a callable in credentials._LazyPassword.__str__
It is possible that the self._pwfunc() call returns a callable. For instance, if the keyutils.osc.OscKernelKeyringBackend is configured in the oscrc. Hence, check in credentials._LazyPassword.__str__ if the returned password is a callable and, if so, call it. Moreover, a deprecation warning is printed. Eventually, this compat code will be removed again. This is a follow-up commit for commit 784d330 ("Only prompt for a password if the server asks for it") (actually, it is a regression that was not caught during the review...).
- Loading branch information