8000 Backport PR #19649: Use globals() instead of locals() for adding colo… · matplotlib/matplotlib@9e11b92 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e11b92

Browse files
anntzermeeseeksmachine
authored andcommitted
Backport PR #19649: Use globals() instead of locals() for adding colormaps as names to cm module
1 parent b1efe69 commit 9e11b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _warn_deprecated(self):
9292

9393

9494
_cmap_registry = _gen_cmap_registry()
95-
locals().update(_cmap_registry)
95+
globals().update(_cmap_registry)
9696
# This is no longer considered public API
9797
cmap_d = _DeprecatedCmapDictWrapper(_cmap_registry)
9898
__builtin_cmaps = tuple(_cmap_registry)

0 commit comments

Comments
 (0)
0