RET504: fix

This commit is contained in:
Jörg Thalheim
2025-08-26 15:25:38 +02:00
parent fb2fe36c87
commit d5b09f18ed
27 changed files with 42 additions and 95 deletions

View File

@@ -82,9 +82,7 @@ class PrefixFormatter(logging.Formatter):
self.hostnames += [hostname]
index = self.hostnames.index(hostname)
coloroffset = (index + self.hostname_color_offset) % len(colorcodes)
colorcode = colorcodes[coloroffset]
return colorcode
return colorcodes[coloroffset]
def get_callers(start: int = 2, end: int = 2) -> list[str]: