Mercurial > kallithea
view docs/index.rst @ 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 | a564e87a3958 |
children | 5a3417b6fcf2 |
line wrap: on
line source
.. _index: ####################### Kallithea Documentation ####################### * :ref:`genindex` * :ref:`search` Readme ****** .. toctree:: :maxdepth: 1 readme Administrator guide ******************* **Installation and upgrade** .. toctree:: :maxdepth: 1 overview installation installation_win installation_win_old installation_iis installation_puppet upgrade **Setup and configuration** .. toctree:: :maxdepth: 1 setup administrator_guide/auth administrator_guide/vcs_setup usage/email usage/customization **Maintenance** .. toctree:: :maxdepth: 1 usage/backup usage/performance usage/debugging usage/troubleshooting User guide ********** .. toctree:: :maxdepth: 1 usage/general usage/vcs_notes usage/statistics api/api Developer guide *************** .. toctree:: :maxdepth: 1 contributing dev/i18n dev/dbmigrations .. _python: http://www.python.org/ .. _django: http://www.djangoproject.com/ .. _mercurial: https://www.mercurial-scm.org/ .. _bitbucket: http://bitbucket.org/ .. _subversion: http://subversion.tigris.org/ .. _git: http://git-scm.com/ .. _celery: http://celeryproject.org/ .. _Sphinx: http://sphinx.pocoo.org/ .. _vcs: http://pypi.python.org/pypi/vcs