Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ffd68e commit e18712aCopy full SHA for e18712a
lib/matplotlib/backends/registry.py
@@ -239,11 +239,10 @@ def is_valid_backend(self, backend):
239
self._backend_to_gui_framework[backend] = "unknown"
240
return True
241
242
- if not self._loaded_entry_points:
243
- # Only load entry points if really need to and not already done so.
244
- self._ensure_entry_points_loaded()
245
- if backend in self._backend_to_gui_framework:
246
- return True
+ # Only load entry points if really need to and not already done so.
+ self._ensure_entry_points_loaded()
+ if backend in self._backend_to_gui_framework:
+ return True
247
248
return False
249
0 commit comments