summaryrefslogtreecommitdiffstats
path: root/git_command.py
diff options
context:
space:
mode:
authorDaniel Kutik <daniel.kutik@lavawerk.com>2023-10-09 13:09:38 +0200
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-09 14:08:29 +0000
commit23d063bdcd1bdcaa70ac8565615764dd4313adf9 (patch)
treec4ea85278ca6de36afdb47ae22e2831d2af0b313 /git_command.py
parentce0ed799b61a74aad7eaf4adc207f74eca627c83 (diff)
downloadgit-repo-23d063bdcd1bdcaa70ac8565615764dd4313adf9.tar.gz
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 <vapier@google.com> Tested-by: Daniel Kutik <daniel.kutik@lavawerk.com> Commit-Queue: Daniel Kutik <daniel.kutik@lavawerk.com>
Diffstat (limited to 'git_command.py')
-rw-r--r--git_command.py2
1 files changed, 1 insertions, 1 deletions
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):
619 self.git_stderr = git_stderr 619 self.git_stderr = git_stderr
620 620
621 @property 621 @property
622 @functools.lru_cache 622 @functools.lru_cache(maxsize=None)
623 def suggestion(self): 623 def suggestion(self):
624 """Returns helpful next steps for the given stderr.""" 624 """Returns helpful next steps for the given stderr."""
625 if not self.git_stderr: 625 if not self.git_stderr: