[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-04-13 00:00:18 +00:00
parent 72ad6dc953
commit f4cd1ba0d6
813 changed files with 66015 additions and 58839 deletions

View file

@ -29,15 +29,15 @@ class TagTracer:
else:
extra = {}
content = " ".join(map(str, args))
indent = " " * self.indent
content = ' '.join(map(str, args))
indent = ' ' * self.indent
lines = ["{}{} [{}]\n".format(indent, content, ":".join(tags))]
lines = ['{}{} [{}]\n'.format(indent, content, ':'.join(tags))]
for name, value in extra.items():
lines.append(f"{indent} {name}: {value}\n")
lines.append(f'{indent} {name}: {value}\n')
return "".join(lines)
return ''.join(lines)
def _processmessage(self, tags: tuple[str, ...], args: tuple[object, ...]) -> None:
if self._writer is not None and args:
@ -54,7 +54,7 @@ class TagTracer:
def setprocessor(self, tags: str | tuple[str, ...], processor: _Processor) -> None:
if isinstance(tags, str):
tags = tuple(tags.split(":"))
tags = tuple(tags.split(':'))
else:
assert isinstance(tags, tuple)
self._tags2proc[tags] = processor