Skip to content

Commit

Permalink
lint: fix issues that the Python linter mistakenly flags as new
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Nov 22, 2024
1 parent 30b4554 commit 2283ea9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist-git-client/dist_git_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def parse_sources(args, config):
Locate the sources, and download them from the appropriate dist-git
lookaside cache.
"""
# pylint: disable=too-many-locals
parsed_url, distgit_config = get_distgit_config(config, args.forked_from)
namespace = parsed_url.path.strip('/').split('/')
# drop the last {name}.git part
Expand All @@ -245,7 +246,7 @@ def parse_sources(args, config):
return

logging.info("Reading sources specification file: %s", sources_file)
with open(sources_file, 'r') as sfd:
with open(sources_file, 'r', encoding="utf8") as sfd:
while True:
line = sfd.readline()
if not line:
Expand Down Expand Up @@ -274,7 +275,7 @@ def parse_sources(args, config):
filename = os.path.basename(source_spec[1])
kwargs["filename"] = filename.strip('()')
else:
msg = "Weird sources line: {0}".format(line)
msg = f"Weird sources line: {line}"
raise RuntimeError(msg)

url_file = '/'.join([
Expand Down

0 comments on commit 2283ea9

Please sign in to comment.