From 794314668a27e4354081f1b8e11125d55b2846f2 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Fri, 22 Mar 2019 15:50:58 -0400 Subject: [PATCH] this is not unicode, it came from a file, I guess --- src/allmydata/web/private.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/web/private.py b/src/allmydata/web/private.py index 75eb7d605..13fbccdf9 100644 --- a/src/allmydata/web/private.py +++ b/src/allmydata/web/private.py @@ -65,7 +65,7 @@ class Token(object): def equals(self, valid_token): return timing_safe_compare( - valid_token.encode("ascii"), + valid_token, self.proposed_token, )