diff --git a/CHANGELOG.md b/CHANGELOG.md index 5be3f8ba..857a9476 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [2.4.2] - 2019-02-22 + +### Fixed + +- Fixed exception when Python runs with -OO + ## [2.4.1] - 2019-02-20 ### Fixed diff --git a/fs/_version.py b/fs/_version.py index 7bdde237..d2bcc700 100644 --- a/fs/_version.py +++ b/fs/_version.py @@ -1,3 +1,3 @@ """Version, used in module and setup.py. """ -__version__ = "2.4.1" +__version__ = "2.4.2" diff --git a/fs/base.py b/fs/base.py index 8297f8c1..8ccfcf04 100644 --- a/fs/base.py +++ b/fs/base.py @@ -77,13 +77,15 @@ def _method(*args, **kwargs): ) return method(*args, **kwargs) - _method.__doc__ += """ + deprecated_msg = """ Note: .. deprecated:: 2.2.0 Please use `~{}` """.format( method.__name__ ) + if getattr(_method, "__doc__"): + _method.__doc__ += deprecated_msg return _method