From 239a90d5a63dc1eb08e3bb1a26e5c9792d0fda60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 13 Jan 2021 08:28:41 +0100 Subject: [PATCH] use lower case variables --- nur/index.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nur/index.py b/nur/index.py index c27947cd6..4b95f50b7 100644 --- a/nur/index.py +++ b/nur/index.py @@ -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)