]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: reformat quoting in format enum
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 8 Apr 2022 15:15:55 +0000 (11:15 -0400)
committerAdam King <adking@redhat.com>
Sat, 21 May 2022 23:20:37 +0000 (19:20 -0400)
Whenever possible I use 'black' to reformat the python code.
It's strict and its formatting is superset of what ceph's
formatting tools require. This change updates the code that was
moved into this file so that future uses of 'black' don't
reformat this section too.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 05b76159b6a262b6bbdab3c0b41a80a85bf705e0)

src/pybind/mgr/object_format.py

index 771ed1b9efbf25c192419b664512b93f5e2b51f1..4a3fdeb9cf650e6917a63c471244f6b693170d8a 100644 (file)
@@ -3,11 +3,11 @@
 
 import enum
 
-class Format(enum.Enum):
-    plain = 'plain'
-    json = 'json'
-    json_pretty = 'json-pretty'
-    yaml = 'yaml'
-    xml_pretty = 'xml-pretty'
-    xml = 'xml'
 
+class Format(enum.Enum):
+    plain = "plain"
+    json = "json"
+    json_pretty = "json-pretty"
+    yaml = "yaml"
+    xml_pretty = "xml-pretty"
+    xml = "xml"