]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 26 Jun 2023 14:56:48 +0000 (10:56 -0400)
commitd895398bcbc0f96c0139ca74600d2c8f3175a33b
tree2d0ad420fec6f33fbf993d65c82e09107df30608
parent4561fc37084faa766bd199f052bd2b2a1589269e
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>
src/python-common/ceph/deployment/drive_group.py