Skip to content

Commit b57c49d

Browse files
committed
Add a period to a comment, simplify one expression
w.r.t. #2542
1 parent 908b8dc commit b57c49d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beetsplug/web/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def _rep(obj, expand=False):
4343
else:
4444
del out['path']
4545

46-
# Filter all bytes attributes and convert them to strings
46+
# Filter all bytes attributes and convert them to strings.
4747
for key, value in out.items():
4848
if isinstance(out[key], bytes):
49-
out[key] = base64.b64encode(out[key]).decode('ascii')
49+
out[key] = base64.b64encode(value).decode('ascii')
5050

5151
# Get the size (in bytes) of the backing file. This is useful
5252
# for the Tomahawk resolver API.

0 commit comments

Comments
 (0)