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:
Jakub Molinski 2019-04-15 14:37:04 +02:00 committed by Mark Dickinson
parent 3c7931e514
commit a9a28808e5
3 changed files with 5 additions and 3 deletions

View File

@ -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.
"""

View File

@ -1099,6 +1099,7 @@ Tim Mitchell
Zubin Mithra
Florian Mladitsch
Doug Moen
Jakub Molinski
Juliette Monsel
The Dragon De Monsyne
Bastien Montagne

View File

@ -0,0 +1 @@
Remove obsolete comments from docstrings in fractions.Fraction