]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/orchestrator: reformat ceph.deployment.service_spec import line
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 25 May 2023 23:17:02 +0000 (19:17 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:35:15 +0000 (13:35 -0400)
commita787ebf4e965aeb278027f560ebc5b748b7c9877
tree792ca16d504d056de8da22a169f35ed9e5173999
parentb77587afff87c6ffcdda321f1e1269a9f6ce01ca
mgr/orchestrator: reformat ceph.deployment.service_spec import line

Quoting https://peps.python.org/pep-0008/#maximum-line-length
```
The preferred way of wrapping long lines is by using Python’s
implied line continuation inside parentheses, brackets and braces. Long
lines can be broken over multiple lines by wrapping expressions in
parentheses. These should be used in preference to using a backslash for
line continuation.
```

I also think it is much more readable and is similar to the style
applied by automated code formatting tools like `black`.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 5cc6f0a147247799478556e01b397f3ee6599f2e)
src/pybind/mgr/orchestrator/_interface.py