summaryrefslogtreecommitdiff
path: root/Lib/decimal.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r--Lib/decimal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py
index 967f101c61..875e38a78f 100644
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -2173,7 +2173,7 @@ for name in rounding_functions:
del name, val, globalname, rounding_functions
-class ContextManager(object):
+class WithStatementContext(object):
"""Helper class to simplify Context management.
Sample usage:
@@ -2249,7 +2249,7 @@ class Context(object):
return ', '.join(s) + ')'
def __context__(self):
- return ContextManager(self.copy())
+ return WithStatementContext(self.copy())
def clear_flags(self):
"""Reset all flags to zero"""