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 7a727a1

Browse filesBrowse files
committed
Avoid triggering a DeprecationWarning.
1 parent aca804f commit 7a727a1
Copy full SHA for 7a727a1

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎lib/matplotlib/backends/backend_cairo.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_cairo.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ def _draw_paths():
307307
# We actually need to call the setters to reset the internal state.
308308
vars(gc).update(gc_vars)
309309
for k, v in gc_vars.items():
310+
if k == "_linestyle": # Deprecated, no effect.
311+
continue
310312
try:
311313
getattr(gc, "set" + k)(v)
312314
except (AttributeError, TypeError) as e:

0 commit comments

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