Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Dec 13, 2023
1 parent d5c73b5 commit 60d1c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# pylint: disable=C0103,invalid-name
import base64

import contextlib
import inspect
import io
Expand Down Expand Up @@ -2273,7 +2272,8 @@ def test_create_metalink():
meta_lines = [line.strip() for line in meta_xml.splitlines()]
for file, data in zip(meta_files, test_data):
size = len(data)
href = f"file://" + file["href"] if file["href"].startswith("/") else file["href"]
href = file["href"]
href = f"file://{href}" if href.startswith("/") else href
ctype = file["type"]
size_line = f"<size>{size}</size>"
href_line = f"<metaurl mediatype=\"{ctype}\">{href}</metaurl>"
Expand Down

0 comments on commit 60d1c08

Please sign in to comment.