You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the new version release i can no longer import: safe_str_cmp
>>> from werkzeug.security import safe_str_cmp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security'
To be able to import safe_str_cmp without an error
Remove the pbkdf2_hex, pbkdf2_bin, and safe_str_cmp functions. Use equivalents in hashlib and hmac modules instead.
You should use a tool like pip-tools to pin your dependencies and control when you get updates. Be sure to run your tests with deprecation warnings treated as errors so that you get notified of these types of changes early.
After the new version release i can no longer import:
safe_str_cmp
To be able to import
safe_str_cmp
without an errorEnvironment:
The text was updated successfully, but these errors were encountered: