Mercurial > p > roundup > code
diff roundup/rest.py @ 8194:2ecd1a871993
chore(ruff): replace not a == b with a != b
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 11 Dec 2024 13:34:28 -0500 |
| parents | d06a140eab4d |
| children | beab1ba70d34 |
line wrap: on
line diff
--- a/roundup/rest.py Wed Dec 11 13:30:50 2024 -0500 +++ b/roundup/rest.py Wed Dec 11 13:34:28 2024 -0500 @@ -2561,7 +2561,7 @@ # check for pretty print try: - pretty_output = not input_payload['@pretty'].value.lower() == "false" + pretty_output = input_payload['@pretty'].value.lower() != "false" # Can also return a TypeError ("not indexable") # In case the FieldStorage could not parse the result except (KeyError, TypeError): @@ -2726,7 +2726,7 @@ self.json_dict = json.loads(json_string, parse_constant=raise_error_on_constant) self.value = [self.FsValue(index, self.json_dict[index]) - for index in self.json_dict.keys()] + for index in self.json_dict] except ValueError: self.json_dict = {} self.value = None
