From b57c49d7386e9e55ddf0495f034b93cb2da55588 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Thu, 4 May 2017 09:29:27 -0400 Subject: [PATCH] Add a period to a comment, simplify one expression w.r.t. #2542 --- beetsplug/web/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index c154b0cf4..290f25b48 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -43,10 +43,10 @@ def _rep(obj, expand=False): else: del out['path'] - # Filter all bytes attributes and convert them to strings + # Filter all bytes attributes and convert them to strings. for key, value in out.items(): if isinstance(out[key], bytes): - out[key] = base64.b64encode(out[key]).decode('ascii') + out[key] = base64.b64encode(value).decode('ascii') # Get the size (in bytes) of the backing file. This is useful # for the Tomahawk resolver API.