keybase / python-twofish

Bindings for the Twofish implementation by Niels Ferguson
BSD 3-Clause "New" or "Revised" License
25 stars 16 forks source link

PendingDeprecationWarning: the imp module is deprecated in favour of importlib #4

Open voetsjoeba opened 8 years ago

voetsjoeba commented 8 years ago

Under Python 3.4, importing the twofish module yields the following warning when developer warnings are enabled (e.g. when running unit tests through the unittest module):

PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  PendingDeprecationWarning)
hugovk commented 1 year ago

The imp module will be removed in Python 3.12:

https://github.com/python/cpython/issues/98040 https://github.com/python/cpython/pull/98573