Remove pred from compat.any/all
This makes it compatible with the python builtin, and we can even use the builtin when running under the right version of python. The all and any functions are renamed to _all and _any, so that they can be tested, and (non)existing unittests are updated (translation: there are no unit tests, so none are updated). This patch also moves the code deciding which partial to use next to the definition of the _partial function, rather than after TryToRoman. Signed-off-by:Guido Trotter <ultrotter@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
Showing
- lib/bdev.py 2 additions, 2 deletionslib/bdev.py
- lib/cmdlib.py 7 additions, 6 deletionslib/cmdlib.py
- lib/compat.py 21 additions, 18 deletionslib/compat.py
- lib/masterd/instance.py 3 additions, 3 deletionslib/masterd/instance.py
- scripts/gnt-cluster 1 addition, 1 deletionscripts/gnt-cluster
- tools/burnin 1 addition, 1 deletiontools/burnin
Loading
Please register or sign in to comment