Edgewall Software

Opened 7 years ago

Closed 7 years ago

#12861 closed defect (fixed)

DeprecationWarning: passing settings to des_crypt.hash() is deprecated, and won't be supported in Passlib 2.0 — at Version 1

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.2.3
Component: general Version:
Severity: normal Keywords: passlib windows
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

Spotted the following in the AppVeyor logs, tests run with Passlib 1.7.1:

C:\Python26-x64\lib\site-packages\passlib\utils\handlers.py:103: DeprecationWarning: passing settings to des_crypt.hash() is deprecated, and won't be supported in Passlib 2.0; use 'des_crypt.using(**settings).hash(secret)' 
instead
  DeprecationWarning, stacklevel=guess_app_stacklevel(2))

Strangely the warning is only seen when running the tests with Python 2.6.

See also #12669.

Change History (1)

comment:1 by Ryan J Ollos, 7 years ago

Description: modified (diff)
Resolution: fixed
Status: assignedclosed

Fixed on 1.2-stable in r16109, merged to trunk in r16110.

The using method is documented here.

Note: See TracTickets for help on using tickets.