From ad027aff7656abc098539f4159fa30638581ad35 Mon Sep 17 00:00:00 2001 From: meejah Date: Fri, 12 Aug 2022 00:34:47 -0600 Subject: [PATCH] compare bytes to bytes --- src/allmydata/grid_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/grid_manager.py b/src/allmydata/grid_manager.py index f502c413e..d776fb7d0 100644 --- a/src/allmydata/grid_manager.py +++ b/src/allmydata/grid_manager.py @@ -466,7 +466,7 @@ def create_grid_manager_verifier(keys, certs, public_key, now_fn=None, bad_cert= now = now_fn() for cert in valid_certs: expires = datetime.utcfromtimestamp(cert['expires']) - if cert['public_key'].encode("ascii") == public_key: + if cert['public_key'] == public_key: if expires > now: # not-expired return True