From 3a056b3fbecfbd72b6f62e33ba2a1dfb1bd0d461 Mon Sep 17 00:00:00 2001 From: John Rouillard Date: Wed, 11 Dec 2024 15:22:03 -0500 Subject: [PATCH] chore(ruff): clean whitespace and remove unrecognized noqa directive. --- roundup/cgi/client.py | 2 +- roundup/rest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index c31dd49e..376c6762 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -2344,7 +2344,7 @@ def handle_action(self): if isinstance(action, list): raise SeriousError( self._('broken form: multiple @action values submitted')) - + action = action.value.lower() try: diff --git a/roundup/rest.py b/roundup/rest.py index 5e291b61..a2aacb70 100644 --- a/roundup/rest.py +++ b/roundup/rest.py @@ -520,7 +520,7 @@ def props_from_args(self, cl, args, itemid=None, skip_protected=True): elif key not in unprotected_class_props: # report bad props as this is an error. raise UsageError("Property %s not found in class %s" % (key, - cl.classname)) # noqa: E128 + cl.classname)) props[key] = self.prop_from_arg(cl, key, value, itemid) return props