bpo-36625: Remove obsolete comments from docstrings in fractions module (GH-12822)
Remove left-over references to Python 3.0 as the future in Fraction class docstrings.
This commit is contained in:
parent
3c7931e514
commit
a9a28808e5
|
@ -512,16 +512,16 @@ class Fraction(numbers.Rational):
|
|||
return a._numerator // a._denominator
|
||||
|
||||
def __floor__(a):
|
||||
"""Will be math.floor(a) in 3.0."""
|
||||
"""math.floor(a)"""
|
||||
return a.numerator // a.denominator
|
||||
|
||||
def __ceil__(a):
|
||||
"""Will be math.ceil(a) in 3.0."""
|
||||
"""math.ceil(a)"""
|
||||
# The negations cleverly convince floordiv to return the ceiling.
|
||||
return -(-a.numerator // a.denominator)
|
||||
|
||||
def __round__(self, ndigits=None):
|
||||
"""Will be round(self, ndigits) in 3.0.
|
||||
"""round(self, ndigits)
|
||||
|
||||
Rounds half toward even.
|
||||
"""
|
||||
|
|
|
@ -1099,6 +1099,7 @@ Tim Mitchell
|
|||
Zubin Mithra
|
||||
Florian Mladitsch
|
||||
Doug Moen
|
||||
Jakub Molinski
|
||||
Juliette Monsel
|
||||
The Dragon De Monsyne
|
||||
Bastien Montagne
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Remove obsolete comments from docstrings in fractions.Fraction
|
Loading…
Reference in New Issue