Skip to content

Commit a9a2880

Browse files
jmolinskimdickinson
authored andcommitted
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.
1 parent 3c7931e commit a9a2880

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Lib/fractions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,16 +512,16 @@ def __trunc__(a):
512512
return a._numerator // a._denominator
513513

514514
def __floor__(a):
515-
"""Will be math.floor(a) in 3.0."""
515+
"""math.floor(a)"""
516516
return a.numerator // a.denominator
517517

518518
def __ceil__(a):
519-
"""Will be math.ceil(a) in 3.0."""
519+
"""math.ceil(a)"""
520520
# The negations cleverly convince floordiv to return the ceiling.
521521
return -(-a.numerator // a.denominator)
522522

523523
def __round__(self, ndigits=None):
524-
"""Will be round(self, ndigits) in 3.0.
524+
"""round(self, ndigits)
525525
526526
Rounds half toward even.
527527
"""

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,7 @@ Tim Mitchell
10991099
Zubin Mithra
11001100
Florian Mladitsch
11011101
Doug Moen
1102+
Jakub Molinski
11021103
Juliette Monsel
11031104
The Dragon De Monsyne
11041105
Bastien Montagne
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove obsolete comments from docstrings in fractions.Fraction

0 commit comments

Comments
 (0)