File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
66and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
77
8+ ## [ 2.4.2] - 2019-02-22
9+
10+ ### Fixed
11+
12+ - Fixed exception when Python runs with -OO
13+
814## [ 2.4.1] - 2019-02-20
915
1016### Fixed
Original file line number Diff line number Diff line change 11"""Version, used in module and setup.py.
22"""
3- __version__ = "2.4.1 "
3+ __version__ = "2.4.2 "
Original file line number Diff line number Diff line change @@ -77,13 +77,15 @@ def _method(*args, **kwargs):
7777 )
7878 return method (* args , ** kwargs )
7979
80- _method . __doc__ + = """
80+ deprecated_msg = """
8181 Note:
8282 .. deprecated:: 2.2.0
8383 Please use `~{}`
8484""" .format (
8585 method .__name__
8686 )
87+ if getattr (_method , "__doc__" ):
88+ _method .__doc__ += deprecated_msg
8789
8890 return _method
8991
You can’t perform that action at this time.
0 commit comments