summaryrefslogtreecommitdiff
path: root/Lib/decimal.py
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2008-05-02 17:39:00 +0000
committerFacundo Batista <facundobatista@gmail.com>2008-05-02 17:39:00 +0000
commitee340e501d2a59d70a91748ebd948787bfac8044 (patch)
tree5252de99b91257bf26b143627687f029d5fb580d /Lib/decimal.py
parent7c5c8e6823e476b46a30373e5a95e8b8e4c5fa09 (diff)
downloadcpython-git-ee340e501d2a59d70a91748ebd948787bfac8044.tar.gz
Fixed some test structures. Thanks Mark Dickinson.
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r--Lib/decimal.py6
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():