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 e458aa6

Browse filesBrowse files
committed
resolve_gui_or_backend returns None instead of "headless"
1 parent e18712a commit e458aa6
Copy full SHA for e458aa6

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/registry.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/registry.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def resolve_gui_or_backend(self, gui_or_backend):
397397
# First check if it is a gui loop name.
398398
backend = self.backend_for_gui_framework(gui_or_backend)
399399
if backend is not None:
400-
return backend, gui_or_backend
400+
return backend, gui_or_backend if gui_or_backend != "headless" else None
401401

402402
# Then check if it is a backend name.
403403
try:

0 commit comments

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