summary refs log tree commit diff
path: root/synapse/secrets.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change HomeServer definition to work with typing.Erik Johnston2020-08-111-2/+6
| | | | | | | | | | Duplicating function signatures between server.py and server.pyi is silly. This commit changes that by changing all `build_*` methods to `get_*` methods and changing the `_make_dependency_method` to work work as a descriptor that caches the produced value. There are some changes in other files that were made to fix the typing in server.py.
* isort 5 compatibility (#7786)Will Hunt2020-07-051-2/+1
| | | The CI appears to use the latest version of isort, which is a problem when isort gets a major version bump. Rather than try to pin the version, I've done the necessary to make isort5 happy with synapse.
* Run Black. (#5482)Amber Brown2019-06-201-1/+2
|
* Port over enough to get some sytests running on Python 3 (#3668)Amber Brown2018-08-201-1/+1
|
* Only import secrets when availableKrombel2018-07-301-4/+3
| | | | | | | | | | secrets got introduced in python 3.6 so this class is not available in 3.5 and before. This now checks for the current running version and only tries using secrets if the version is 3.6 or above Signed-Off-By: Matthias Kesler <krombel@krombel.de>
* Admin API for creating new users (#3415)Amber Brown2018-07-201-0/+42