diff options
author | Jakub Molinski <jakub@molinski.dev> | 2019-04-15 12:37:04 (GMT) |
---|---|---|
committer | Mark Dickinson <mdickinson@enthought.com> | 2019-04-15 12:37:04 (GMT) |
commit | a9a28808e5a03d2e68e421227c113a38edc40946 (patch) | |
tree | fe3bb0ad9555b19d11bcc8fb6af75da962c58a30 | |
parent | 3c7931e514faf509a39c218c2c9f55efb434628f (diff) | |
download | cpython-a9a28808e5a03d2e68e421227c113a38edc40946.zip cpython-a9a28808e5a03d2e68e421227c113a38edc40946.tar.gz cpython-a9a28808e5a03d2e68e421227c113a38edc40946.tar.bz2 |
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.
-rw-r--r-- | Lib/fractions.py | 6 | ||||
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Documentation/2019-04-15-12-02-45.bpo-36625.x3LMCF.rst | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/Lib/fractions.py b/Lib/fractions.py index 4bbfc43..7443bd3 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. """ @@ -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 0000000..af1a157 --- /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 |