Fixes for Python 3.8
Created originally on Bitbucket by Anonymous
Was already merged in Bitbucket before import, marked as merged by the import user
from Fedora python-passlib RPM patches:
-
Remove time.clock(), deprecated in 3.8
The function time.clock(), used in passlib/utils/init.py has been removed. It was deprecated since Python 3.3. More info: https://docs.python.org/3.8/whatsnew/3.8.html#api-and-feature-removals
To make the code both Python 2 and 3 compatible, use timeit.default_timer
-
Fix testsuite on Linux
crypt support may be present in libxcrypt
Author: Björn Esser besser82@fedoraproject.org Date: Wed Mar 13 10:02:43 2019 +0100
https://src.fedoraproject.org/rpms/python-passlib/c/29e9641462291e812d7eb50d402e1b3a74c7a95e
-
Fix for Python 3.8
This was a deprecation when running in Python 3.7:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working if isinstance(source, collections.Sequence):