retry: Add support for tenacity < 5.0
This fixes swh-storage debian package build on buster as python3-tenacity version is 4.12.
Other solution is to backport python3-tenacity from sid.
Migrated from D2700 (view on Phabricator)
This fixes swh-storage debian package build on buster as python3-tenacity version is 4.12.
Other solution is to backport python3-tenacity from sid.
Migrated from D2700 (view on Phabricator)