From 364cbb1665f53f9918d332aeebe3b1407a2728d4 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Fri, 26 May 2023 11:40:51 -0400 Subject: [PATCH] python-common: reformat ceph.deployment.service_spec import line MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 (cherry picked from commit d895398bcbc0f96c0139ca74600d2c8f3175a33b) --- src/python-common/ceph/deployment/drive_group.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/python-common/ceph/deployment/drive_group.py b/src/python-common/ceph/deployment/drive_group.py index 62f03173b91..5ab38b2108b 100644 --- a/src/python-common/ceph/deployment/drive_group.py +++ b/src/python-common/ceph/deployment/drive_group.py @@ -2,7 +2,11 @@ import enum import yaml from ceph.deployment.inventory import Device -from ceph.deployment.service_spec import ServiceSpec, PlacementSpec, CustomConfig +from ceph.deployment.service_spec import ( + CustomConfig, + PlacementSpec, + ServiceSpec, +) from ceph.deployment.hostspec import SpecValidationError try: -- 2.39.5