summaryrefslogtreecommitdiff
path: root/Lib/fractions.py
diff options
context:
space:
mode:
authorJakub Molinski <jakub@molinski.dev>2019-04-15 14:37:04 +0200
committerMark Dickinson <mdickinson@enthought.com>2019-04-15 13:37:04 +0100
commita9a28808e5a03d2e68e421227c113a38edc40946 (patch)
treefe3bb0ad9555b19d11bcc8fb6af75da962c58a30 /Lib/fractions.py
parent3c7931e514faf509a39c218c2c9f55efb434628f (diff)
downloadcpython-git-a9a28808e5a03d2e68e421227c113a38edc40946.tar.gz
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.
Diffstat (limited to 'Lib/fractions.py')
-rw-r--r--Lib/fractions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/fractions.py b/Lib/fractions.py
index 4bbfc434f7..7443bd3e0c 100644
--- a/Lib/fractions.py
+++ b/Lib/fractions.py
@@ -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.
"""