mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 18:55:02 -04:00
isort 5 compatibility (#7786)
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.
This commit is contained in:
parent
5cdca53aa0
commit
62b1ce8539
23 changed files with 22 additions and 38 deletions
|
@ -19,7 +19,6 @@ Injectable secrets module for Synapse.
|
|||
See https://docs.python.org/3/library/secrets.html#module-secrets for the API
|
||||
used in Python 3.6, and the API emulated in Python 2.7.
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
# secrets is available since python 3.6
|
||||
|
@ -31,8 +30,8 @@ if sys.version_info[0:2] >= (3, 6):
|
|||
|
||||
|
||||
else:
|
||||
import os
|
||||
import binascii
|
||||
import os
|
||||
|
||||
class Secrets(object):
|
||||
def token_bytes(self, nbytes=32):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue