diff options
author | Robert Collins <rbtcollins@hp.com> | 2015-03-05 02:45:01 (GMT) |
---|---|---|
committer | Robert Collins <rbtcollins@hp.com> | 2015-03-05 02:45:01 (GMT) |
commit | 2f0441f03f71c658148bff60be46585f56670d1f (patch) | |
tree | d02581d83fa5628fd8e2ec474d1b58747438f365 /Lib/_pydecimal.py | |
parent | 3737e600f444b230ef2284fa326443990903b25e (diff) | |
download | cpython-2f0441f03f71c658148bff60be46585f56670d1f.zip cpython-2f0441f03f71c658148bff60be46585f56670d1f.tar.gz cpython-2f0441f03f71c658148bff60be46585f56670d1f.tar.bz2 |
Remaining fallout from 17911
The code module was using a private function from traceback in order to skip a
frame - used the direct interface to do that instead,
The decimal module suffered minor fallout from formatting changes ('None' as a
value is now not printed by traceback, the same as None was not before).
The cgitb module was passing a bogus exception type (type.__name__) into
format_exception, which uncovered that format_exception and print_exception had
been ignoring the etype for some time, so the compatibility thunk to the new
code now does the same thing.
Diffstat (limited to 'Lib/_pydecimal.py')
-rw-r--r-- | Lib/_pydecimal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_pydecimal.py b/Lib/_pydecimal.py index ca6c4bd..88222be 100644 --- a/Lib/_pydecimal.py +++ b/Lib/_pydecimal.py @@ -4108,7 +4108,7 @@ class Context(object): >>> context.create_decimal_from_float(3.1415926535897932) Traceback (most recent call last): ... - decimal.Inexact: None + decimal.Inexact """ d = Decimal.from_float(f) # An exact conversion |