mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +00:00
lint: fix issues that the Python linter mistakenly flags as new
This commit is contained in:
parent
7dfc65fec5
commit
01f9ed1ecd
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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([
|
||||
|
|
Loading…
Add table
Reference in a new issue