From a9a28808e5a03d2e68e421227c113a38edc40946 Mon Sep 17 00:00:00 2001 From: Jakub Molinski Date: Mon, 15 Apr 2019 14:37:04 +0200 Subject: [PATCH] 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. --- Lib/fractions.py | 6 +++--- Misc/ACKS | 1 + .../Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst 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. """ diff --git a/Misc/ACKS b/Misc/ACKS index 5d7181df67..393ea205ac 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -1099,6 +1099,7 @@ Tim Mitchell Zubin Mithra Florian Mladitsch Doug Moen +Jakub Molinski Juliette Monsel The Dragon De Monsyne Bastien Montagne diff --git a/Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst b/Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst new file mode 100644 index 0000000000..af1a157332 --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst @@ -0,0 +1 @@ +Remove obsolete comments from docstrings in fractions.Fraction -- 2.50.1