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 07b6c90

Browse filesBrowse files
tacaswellanntzer
authored andcommitted
MNT: RcParams.__setitem__ refuses to set the backend sentinel
This is to prevent the auto resolution of the backend from being reverted.
1 parent 7dffd5b commit 07b6c90
Copy full SHA for 07b6c90

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+4
-0
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,10 @@ def __setitem__(self, key, val):
849849
cbook.warn_deprecated(
850850
"3.0", "{} is deprecated; in the future, examples will be "
851851
"found relative to the 'datapath' directory.".format(key))
852+
elif key == 'backend':
853+
if val is rcsetup._auto_backend_sentinel:
854+
if 'backend' in self:
855+
return
852856
try:
853857
cval = self.validate[key](val)
854858
except ValueError as ve:

0 commit comments

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