Mercurial > p > roundup > code
diff roundup/rest.py @ 8193:d06a140eab4d
chore(ruff): replace set(generator) with {set comprehension}
The comprehension seems to be the more expected way to express. Not
sure if there is a performance difference.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 11 Dec 2024 13:30:50 -0500 |
| parents | b4d7f9358ba6 |
| children | 2ecd1a871993 |
line wrap: on
line diff
--- a/roundup/rest.py Wed Dec 11 13:29:11 2024 -0500 +++ b/roundup/rest.py Wed Dec 11 13:30:50 2024 -0500 @@ -360,7 +360,7 @@ if isinstance(methods, basestring): # convert string to tuple methods = (methods,) - methods = set(item.upper() for item in methods) + methods = {item.upper() for item in methods} # convert a rule to a compiled regex object # so /data/<:class>/<:id> will become
