Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b05b8f0

Browse filesBrowse files
authored
Merge pull request matplotlib#23134 from QuLogic/no-deprecation-newline
Remove newline from start of deprecation warnings
2 parents e49d6b6 + 4ef97b9 commit b05b8f0
Copy full SHA for b05b8f0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/_api/deprecation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/_api/deprecation.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _generate_deprecation_warning(
3232
removal = f"in {removal}" if removal else "two minor releases later"
3333
if not message:
3434
message = (
35-
("\nThe %(name)s %(obj_type)s" if obj_type else "%(name)s")
35+
("The %(name)s %(obj_type)s" if obj_type else "%(name)s")
3636
+ (" will be deprecated in a future version"
3737
if pending else
3838
(" was deprecated in Matplotlib %(since)s"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.