mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 15:04:58 -04:00
Stop sub-classing object (#8249)
This commit is contained in:
parent
9f8abdcc38
commit
c619253db8
168 changed files with 293 additions and 292 deletions
|
@ -37,7 +37,7 @@ else:
|
|||
import binascii
|
||||
import os
|
||||
|
||||
class Secrets(object):
|
||||
class Secrets:
|
||||
def token_bytes(self, nbytes=32):
|
||||
return os.urandom(nbytes)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue