From 1f9787cf112ebc82be6000c4bd1c09b7dc88c319 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 6 Feb 2025 17:40:53 -0500 Subject: Update nixpkgs and stupid fixes Some things got through the CI system, probably during updates. So I had more stupid little fixes to do. I should really improve bild to the point that these won't happen anymore and builds don't take so long. --- Biz/Dragons/main.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Biz/Dragons') diff --git a/Biz/Dragons/main.py b/Biz/Dragons/main.py index 0cb4554..5e7a1c8 100755 --- a/Biz/Dragons/main.py +++ b/Biz/Dragons/main.py @@ -12,6 +12,8 @@ import subprocess import sys import typing +LOG = logging.getLogger(__name__) + def find_user(line: str) -> typing.Any: """ @@ -154,7 +156,7 @@ class Repo: .split() if not any(i in p for i in ignored_paths) ] - logging.debug("collecting stats") + LOG.debug("collecting stats") self.stats = {} for path in self.paths: self.stats[path] = authors_for(path, active_users) @@ -171,9 +173,9 @@ class Repo: self.stale = {} max_staleness = 180 for path in self.stats: - _staleness = staleness(path, now) - if _staleness > max_staleness: - self.stale[path] = _staleness + staleness_ = staleness(path, now) + if staleness_ > max_staleness: + self.stale[path] = staleness_ def print_blackholes(self: "Repo", *, full: bool) -> None: """Print number of blackholes, or list of all blackholes.""" @@ -232,9 +234,9 @@ def main() -> None: if args.test: sys.stdout.write("ok") sys.exit() - logging.basicConfig(stream=sys.stderr, level=args.verbosity.upper()) - logging.debug("starting") + logging.basicConfig(stream=sys.stderr, level=args.verbosity.upper()) + LOG.debug("starting") os.chdir(pathlib.Path(args.repo).resolve()) guard_git(args.repo) -- cgit v1.2.3