Mercurial > kallithea
view .eslintrc.js @ 8630:11ab74b7701b
pytest: use hmac.new instead of hmac.HMAC
According to documentation, hmac.new is the way to create a HMAC object ... and
the first argument is mandaatory and we don't want to name it.
This has no functional change but will address a pytype warning:
File "kallithea/model/user.py", line 304, in get_reset_password_token: Invalid keyword arguments (digestmod, key, msg) to function HMAC.__init__ [wrong-keyword-args]
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Tue, 18 Aug 2020 22:36:45 +0200 |
parents | 4d36432bf705 |
children |
line wrap: on
line source
module.exports = { "env": { "browser": true, "es6": true, "jquery": true }, "extends": "eslint:recommended", "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" }, "parserOptions": { "ecmaVersion": 2018, "sourceType": "module" }, "plugins": [ "html" ], "rules": { } };