diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-20 19:29:31 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-20 19:29:31 (GMT) |
commit | 7e52705ee362001a8761461e9c4d49e3873568e0 (patch) | |
tree | 5699fe91c61176691c42f95e7ed367172c8382e5 /Lib/configparser.py | |
parent | 6c01e38677550839d10b558b1a9e0e615d6e4a81 (diff) | |
download | cpython-7e52705ee362001a8761461e9c4d49e3873568e0.zip cpython-7e52705ee362001a8761461e9c4d49e3873568e0.tar.gz cpython-7e52705ee362001a8761461e9c4d49e3873568e0.tar.bz2 |
Issue #20315: Removed support for backward compatibility with early 2.x versions.
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r-- | Lib/configparser.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py index fde1c12..aa401fc 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -144,23 +144,6 @@ MAX_INTERPOLATION_DEPTH = 10 class Error(Exception): """Base class for ConfigParser exceptions.""" - def _get_message(self): - """Getter for 'message'; needed only to override deprecation in - BaseException. - """ - return self.__message - - def _set_message(self, value): - """Setter for 'message'; needed only to override deprecation in - BaseException. - """ - self.__message = value - - # BaseException.message has been deprecated since Python 2.6. To prevent - # DeprecationWarning from popping up over this pre-existing attribute, use - # a new property that takes lookup precedence. - message = property(_get_message, _set_message) - def __init__(self, msg=''): self.message = msg Exception.__init__(self, msg) |