diff options
author | Facundo Batista <facundobatista@gmail.com> | 2008-05-02 17:39:00 +0000 |
---|---|---|
committer | Facundo Batista <facundobatista@gmail.com> | 2008-05-02 17:39:00 +0000 |
commit | ee340e501d2a59d70a91748ebd948787bfac8044 (patch) | |
tree | 5252de99b91257bf26b143627687f029d5fb580d /Lib/decimal.py | |
parent | 7c5c8e6823e476b46a30373e5a95e8b8e4c5fa09 (diff) | |
download | cpython-git-ee340e501d2a59d70a91748ebd948787bfac8044.tar.gz |
Fixed some test structures. Thanks Mark Dickinson.
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index dc44170900..aee558a0bd 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -477,11 +477,7 @@ def localcontext(ctx=None): # General Decimal Arithmetic Specification return +s # Convert result to normal context - """ - # The string below can't be included in the docstring until Python 2.6 - # as the doctest module doesn't understand __future__ statements - """ - >>> from __future__ import with_statement + >>> setcontext(DefaultContext) >>> print getcontext().prec 28 >>> with localcontext(): |