]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
python-common: reformat ceph.deployment.service_spec import line
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 26 May 2023 15:40:51 +0000 (11:40 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:35:15 +0000 (13:35 -0400)
commit364cbb1665f53f9918d332aeebe3b1407a2728d4
treef2013a5ccedc81e0fda6ceeab4c18febe1e67a74
parent53f8d1d966c7ca0b9d7d9fd2a1e30e1c3b68c672
python-common: 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 d895398bcbc0f96c0139ca74600d2c8f3175a33b)
src/python-common/ceph/deployment/drive_group.py