From d7db34f27a0fc3c11f5169d09168044963185d42 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Mon, 4 Jan 2021 14:33:06 -0500 Subject: [PATCH] Add explanation for if statement. --- src/allmydata/web/common_py3.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/allmydata/web/common_py3.py b/src/allmydata/web/common_py3.py index 5aa338e4d..3e9eb8379 100644 --- a/src/allmydata/web/common_py3.py +++ b/src/allmydata/web/common_py3.py @@ -70,6 +70,7 @@ class MultiFormatResource(resource.Resource, object): :return: The result of the selected renderer. """ t = get_arg(req, self.formatArgument, self.formatDefault) + # It's either bytes or None. if isinstance(t, bytes): t = unicode(t, "ascii") renderer = self._get_renderer(t)