From 7b53a2e34fdafbfa07be47469795041599226174 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 12 Dec 2023 17:15:05 -0500 Subject: [PATCH] cepadm: black reformat build.py Signed-off-by: John Mulligan --- src/cephadm/build.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cephadm/build.py b/src/cephadm/build.py index 3ca8cdd4e26..da237174ad0 100755 --- a/src/cephadm/build.py +++ b/src/cephadm/build.py @@ -165,7 +165,9 @@ class DependencyInfo: def __init__(self, config): self._config = config self._deps = [] - self._reqs = {s.name: s.package_spec for s in self._config.requirements} + self._reqs = { + s.name: s.package_spec for s in self._config.requirements + } @property def requirements(self): @@ -186,7 +188,6 @@ class DependencyInfo: json.dump(self._deps, fh) - def _run(command, *args, **kwargs): log.info( 'Running cmd: %s', ' '.join(shlex.quote(str(c)) for c in command) @@ -255,7 +256,9 @@ def _build(dest, src, config): shutil.rmtree(tempdir) -def _ignore_cephadmlib(source_dir, names, ignore_suffixes=None, ignore_exact=None): +def _ignore_cephadmlib( + source_dir, names, ignore_suffixes=None, ignore_exact=None +): # shutil.copytree callback: return the list of names *to ignore* suffixes = ["~", ".old", ".swp", ".pyc", ".pyo", ".so", "__pycache__"] exact = [] -- 2.47.3