Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51e4944

Browse files
committed
Add a newline before deprecation messages
1 parent 8a29c40 commit 51e4944

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/cbook/deprecation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def warn_deprecated(
100100
"""
101101
message = _generate_deprecation_message(
102102
since, message, name, alternative, pending, obj_type, removal=removal)
103+
message = '\n' + message
103104
warnings.warn(message, mplDeprecation, stacklevel=2)
104105

105106

0 commit comments

Comments
 (0)