8000 resolve_gui_or_backend returns None instead of "headless" · matplotlib/matplotlib@e458aa6 · GitHub
[go: up one dir, main page]

Skip to content

Commit e458aa6

Browse files
committed
resolve_gui_or_backend returns None instead of "headless"
1 parent e18712a commit e458aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/registry.py

Lines 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