summaryrefslogtreecommitdiffstats
path: root/Lib/_pydecimal.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-09-22 10:33:21 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-09-22 10:33:21 (GMT)
commitf3b0639417bf788d9a7133ec26e52c406e6c8f4c (patch)
treefb4cad9ccebc8abd965b5e1a5bb272d44976a75d /Lib/_pydecimal.py
parente3d504090cea1c4e01e9d8ebf241f9356cb1aba0 (diff)
parentbb8b1cb6af830b40f9be398d1e1bf8bdca772140 (diff)
downloadcpython-f3b0639417bf788d9a7133ec26e52c406e6c8f4c.zip
cpython-f3b0639417bf788d9a7133ec26e52c406e6c8f4c.tar.gz
cpython-f3b0639417bf788d9a7133ec26e52c406e6c8f4c.tar.bz2
Issue #27348: Merge exception formatting fix from 3.5 into 3.6
Diffstat (limited to 'Lib/_pydecimal.py')
-rw-r--r--Lib/_pydecimal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_pydecimal.py b/Lib/_pydecimal.py
index 6318a49..0b40928 100644
--- a/Lib/_pydecimal.py
+++ b/Lib/_pydecimal.py
@@ -4156,7 +4156,7 @@ class Context(object):
>>> context.create_decimal_from_float(3.1415926535897932)
Traceback (most recent call last):
...
- decimal.Inexact
+ decimal.Inexact: None
"""
d = Decimal.from_float(f) # An exact conversion