From 23d063bdcd1bdcaa70ac8565615764dd4313adf9 Mon Sep 17 00:00:00 2001 From: Daniel Kutik Date: Mon, 9 Oct 2023 13:09:38 +0200 Subject: [PATCH] git_command: lru_cache needs maxsize for py36 & 37 Python 3.6 and 3.7 do not have a default value for lru_cache maxsize. Not setting it would cause: TypeError: Expected maxsize to be an integer or None Change-Id: I32d4fb6a0040a0c24da0b2f29f22f85a36c96531 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/388737 Reviewed-by: Mike Frysinger Tested-by: Daniel Kutik Commit-Queue: Daniel Kutik --- git_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_command.py b/git_command.py index ef6e321c..4b17f78d 100644 --- a/git_command.py +++ b/git_command.py @@ -619,7 +619,7 @@ class GitCommandError(GitError): self.git_stderr = git_stderr @property - @functools.lru_cache + @functools.lru_cache(maxsize=None) def suggestion(self): """Returns helpful next steps for the given stderr.""" if not self.git_stderr: