Skip to content

Commit c3dfc05

Browse files
committed
chore(ruff): replace not a == b with a != b
1 parent 604b3db commit c3dfc05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,7 @@ def dispatch(self, method, uri, input_payload):
25612561

25622562
# check for pretty print
25632563
try:
2564-
pretty_output = not input_payload['@pretty'].value.lower() == "false"
2564+
pretty_output = input_payload['@pretty'].value.lower() != "false"
25652565
# Can also return a TypeError ("not indexable")
25662566
# In case the FieldStorage could not parse the result
25672567
except (KeyError, TypeError):
@@ -2726,7 +2726,7 @@ def raise_error_on_constant(x):
27262726
self.json_dict = json.loads(json_string,
27272727
parse_constant=raise_error_on_constant)
27282728
self.value = [self.FsValue(index, self.json_dict[index])
2729-
for index in self.json_dict.keys()]
2729+
for index in self.json_dict]
27302730
except ValueError:
27312731
self.json_dict = {}
27322732
self.value = None

0 commit comments

Comments
 (0)