mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
state: use bytes.hex() instead of binascii.hexlify().decode()
This commit is contained in:
parent
13a3f760e6
commit
755ab28311
@ -36,7 +36,6 @@ import inspect
|
||||
import gc
|
||||
|
||||
import os
|
||||
import binascii
|
||||
|
||||
from .guild import Guild
|
||||
from .activity import BaseActivity
|
||||
@ -135,7 +134,7 @@ class ConnectionState:
|
||||
gc.collect()
|
||||
|
||||
def get_nonce(self):
|
||||
return binascii.hexlify(os.urandom(16)).decode('ascii')
|
||||
return os.urandom(16).hex()
|
||||
|
||||
def process_listeners(self, listener_type, argument, result):
|
||||
removed = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user