use lower case variables

This commit is contained in:
Jörg Thalheim 2021-01-13 08:28:41 +01:00
parent 53c6bc3ecc
commit 239a90d5a6
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -32,8 +32,8 @@ def resolve_source(pkg: Dict, repo: str, url: str) -> str:
canonical_url += "/blob/master/"
elif "gitlab" in url:
canonical_url += "/-/blob/master/"
attrPath = "/".join(stripped)
location = f"{canonical_url}{attrPath}"
attr_path = "/".join(stripped)
location = f"{canonical_url}{attr_path}"
return f"{location}#L{line}"
elif stripped[0] not in prefixes:
print(path, file=sys.stderr)
@ -43,8 +43,8 @@ def resolve_source(pkg: Dict, repo: str, url: str) -> str:
)
return prefix
else:
attrPath = "/".join(stripped[1:])
location = f"{prefixes[stripped[0]]}{attrPath}"
attr_path = "/".join(stripped[1:])
location = f"{prefixes[stripped[0]]}{attr_path}"
return f"{location}#L{line}"
elif position is not None and "nur-combined" in position:
path_str, line = position.rsplit(":", 1)