whitespace and some unicode/bytes

Minor changes.
This commit is contained in:
Apprentice Harper
2021-04-11 16:43:16 +01:00
parent 45a1a64db5
commit 73af5d355d
4 changed files with 14 additions and 6 deletions

View File

@@ -848,6 +848,12 @@ class DrmIonVoucher(object):
def __init__(self, voucherenv, dsn, secret):
self.dsn, self.secret = dsn, secret
if isinstance(dsn, str):
self.dsn = dsn.encode('ASCII')
if isinstance(secret, str):
self.secret = secret.encode('ASCII')
self.lockparams = []
self.envelope = BinaryIonParser(voucherenv)