Verified Commit 007c6206 authored by Hans-Christoph Steiner's avatar Hans-Christoph Steiner
Browse files

pylint flags "_" as bad variable name, its the gettext function

Throughout the fdroidserver code base, "_()" is used for localizing
strings.  So it should not be used as an ignored variable name.  Those
should be called "_ignored".
parent fb877c8b
......@@ -35,7 +35,7 @@ notes=FIXME,XXX,TODO
[BASIC]
# Good variable names which should always be accepted, separated by a comma
good-names=i,j,k,ex,Run,_,e,f,fp
good-names=i,j,k,ex,Run,f,fp
[ELIF]
......
......@@ -142,7 +142,7 @@ def _should_file_be_generated(path, magic_string):
def make_website(apps, repodir, repodict):
_, repo_pubkey_fingerprint = extract_pubkey()
_ignored, repo_pubkey_fingerprint = extract_pubkey()
repo_pubkey_fingerprint_stripped = repo_pubkey_fingerprint.replace(" ", "")
link = repodict["address"]
link_fingerprinted = "{link}?fingerprint={fingerprint}".format(link=link, fingerprint=repo_pubkey_fingerprint_stripped)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment