Fix importing of choices function from random library.

This commit is contained in:
Christian Pellegrin
2021-09-17 16:42:34 +01:00
parent 5b782bf414
commit bf41e79c62

View File

@@ -1,5 +1,5 @@
import string
from random import random
from random import choices
from typing import Any, Optional
from urllib import parse
from io import BytesIO
@@ -36,7 +36,7 @@ try:
data = {
'cmd': 'Snap',
'channel': 0,
'rs': ''.join(random.choices(string.ascii_uppercase + string.digits, k=10)),
'rs': ''.join(choices(string.ascii_uppercase + string.digits, k=10)),
'user': self.username,
'password': self.password,
}