Mercurial > hg-stable
diff tests/test-duplicateoptions.py @ 41768:aaad36b88298
cleanup: use () to wrap long lines instead of \
This is a little less brittle, and often helps indentation. In a
surprising number of cases the entire cleanup was deleting the \, as
the expression was *already* parenthesized in a workable way.
Differential Revision: https://phab.mercurial-scm.org/D5993
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 20 Feb 2019 19:28:51 -0500 |
parents | c93d046d4300 |
children | 2372284d9457 |
line wrap: on
line diff
--- a/tests/test-duplicateoptions.py Sun Jan 13 20:13:22 2019 -0500 +++ b/tests/test-duplicateoptions.py Wed Feb 20 19:28:51 2019 -0500 @@ -41,8 +41,8 @@ seenshort = globalshort.copy() seenlong = globallong.copy() for option in entry[1]: - if (option[0] and option[0] in seenshort) or \ - (option[1] and option[1] in seenlong): + if ((option[0] and option[0] in seenshort) or + (option[1] and option[1] in seenlong)): print("command '" + cmd + "' has duplicate option " + str(option)) seenshort.add(option[0]) seenlong.add(option[1])