From 1eaba25021197b4f0dea81bc1106bd5b584a9079 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 2 May 2024 12:11:33 +0200 Subject: [PATCH] common: do not use module reference for local functions This just makes things more confusing. --- fdroidserver/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index b3e41c81..22af3e00 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -380,7 +380,7 @@ def get_config(opts=None): if config is not None: return config - common.read_config(opts=opts) + read_config(opts=opts) # make sure these values are available in common.py even if they didn't # declare global in a scope @@ -570,7 +570,7 @@ def parse_mirrors_config(mirrors): def file_entry(filename, hash_value=None): meta = {} meta["name"] = "/" + Path(filename).as_posix().split("/", 1)[1] - meta["sha256"] = hash_value or common.sha256sum(filename) + meta["sha256"] = hash_value or sha256sum(filename) meta["size"] = os.stat(filename).st_size return meta