Cleanup ht's use of positive/strictpositive
Currently, ht.py uses a bad terminology for positive/non-negative numbers. Per http://en.wikipedia.org/wiki/Positive_number , this is the correct terminology: - A number is positive if it is greater than zero. - A number is negative if it is less than zero. - A number is non-negative if it is greater than or equal to zero. - A number is non-positive if it is less than or equal to zero. So this patch renames things as follows: - TPositiveInt ⇒ TNonNegativeInt - TStrictPositiveInt ⇒ TPositiveInt - TMaybePositiveInt ⇒ dropped, not used anywhere - TMaybeStrictPositiveInt ⇒ TMaybePositiveInt - TPositiveFloat ⇒ TNonNegativeFloat - TStrictNegativeInt ⇒ TNegativeInt Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
Showing
- lib/cmdlib.py 1 addition, 1 deletionlib/cmdlib.py
- lib/ht.py 13 additions, 16 deletionslib/ht.py
- lib/jqueue.py 1 addition, 1 deletionlib/jqueue.py
- lib/masterd/iallocator.py 2 additions, 2 deletionslib/masterd/iallocator.py
- lib/opcodes.py 19 additions, 19 deletionslib/opcodes.py
- test/ganeti.ht_unittest.py 7 additions, 7 deletionstest/ganeti.ht_unittest.py
Loading
Please register or sign in to comment