Skip to content

Commit

Permalink
bpo-36625: Remove obsolete comments from docstrings in fractions modu…
Browse files Browse the repository at this point in the history
…le (GH-12822)

Remove left-over references to Python 3.0 as the future in Fraction class docstrings.
  • Loading branch information
jmolinski authored and mdickinson committed Apr 15, 2019
1 parent 3c7931e commit a9a2880
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/fractions.py
Expand Up @@ -512,16 +512,16 @@ def __trunc__(a):
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.
"""
Expand Down
1 change: 1 addition & 0 deletions Misc/ACKS
Expand Up @@ -1099,6 +1099,7 @@ Tim Mitchell
Zubin Mithra
Florian Mladitsch
Doug Moen
Jakub Molinski
Juliette Monsel
The Dragon De Monsyne
Bastien Montagne
Expand Down
@@ -0,0 +1 @@
Remove obsolete comments from docstrings in fractions.Fraction

0 comments on commit a9a2880

Please sign in to comment.