Merge pull request #50 from chripell/master

Fix importing of choices function from random library.
This commit is contained in:
Alano Terblanche
2021-09-18 23:39:22 +02:00
committed by GitHub

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,
}