mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 19:34:18 +00:00
Add explanation for if statement.
This commit is contained in:
parent
a46a7dc7f8
commit
d7db34f27a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user