diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2011-10-24 09:31:52 (GMT) |
---|---|---|
committer | Mark Dickinson <mdickinson@enthought.com> | 2011-10-24 09:31:52 (GMT) |
commit | 39411f60a2d716a6e61f7a9b4c445b3d8492b9ef (patch) | |
tree | 5b4f34c9e72a66985abf0568925b3a7b1d5721d0 /Lib/decimal.py | |
parent | 037ffbf1823cc90fbb8d8c92050aca46d7583fae (diff) | |
download | cpython-39411f60a2d716a6e61f7a9b4c445b3d8492b9ef.zip cpython-39411f60a2d716a6e61f7a9b4c445b3d8492b9ef.tar.gz cpython-39411f60a2d716a6e61f7a9b4c445b3d8492b9ef.tar.bz2 |
Issue #13248, issue #8540: Remove deprecated Context._clamp attribute from Decimal module.
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index 8acb4ad..e946182 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -3903,28 +3903,6 @@ class Context(object): return nc __copy__ = copy - # _clamp is provided for backwards compatibility with third-party - # code. May be removed in Python >= 3.3. - def _get_clamp(self): - "_clamp mirrors the clamp attribute. Its use is deprecated." - import warnings - warnings.warn('Use of the _clamp attribute is deprecated. ' - 'Please use clamp instead.', - DeprecationWarning) - return self.clamp - - def _set_clamp(self, clamp): - "_clamp mirrors the clamp attribute. Its use is deprecated." - import warnings - warnings.warn('Use of the _clamp attribute is deprecated. ' - 'Please use clamp instead.', - DeprecationWarning) - self.clamp = clamp - - # don't bother with _del_clamp; no sane 3rd party code should - # be deleting the _clamp attribute - _clamp = property(_get_clamp, _set_clamp) - def _raise_error(self, condition, explanation = None, *args): """Handles an error |