Mercurial > p > roundup > code
diff roundup/rest.py @ 8195:beab1ba70d34
chore(ruff): parenthesize "a and b or ..." to enforce/clarify precedence
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 11 Dec 2024 13:36:40 -0500 |
| parents | 2ecd1a871993 |
| children | 94999f850fd6 |
line wrap: on
line diff
--- a/roundup/rest.py Wed Dec 11 13:34:28 2024 -0500 +++ b/roundup/rest.py Wed Dec 11 13:36:40 2024 -0500 @@ -916,7 +916,7 @@ else: vals = [] for p in value.split(","): - dig = p and p.isdigit() or \ + dig = (p and p.isdigit()) or \ (p[0] in ('-', '+') and p[1:].isdigit()) if prop.try_id_parsing and dig: vals.append(p)
