mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2026-03-20 04:58:56 +00:00
whitespace and some unicode/bytes
Minor changes.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user