Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 207edcf

Browse files
committed
Remove local definition of putmask
1 parent 258dbf5 commit 207edcf

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

lib/matplotlib/cbook.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2582,23 +2582,6 @@ def get_label(y, default_name):
25822582
except AttributeError:
25832583
return default_name
25842584

2585-
# Numpy > 1.6.x deprecates putmask in favor of the new copyto.
2586-
# So long as we support versions 1.6.x and less, we need the
2587-
# following local version of putmask. We choose to make a
2588-
# local version of putmask rather than of copyto because the
2589-
# latter includes more functionality than the former. Therefore
2590-
# it is easy to make a local version that gives full putmask
2591-
# behavior, but duplicating the full copyto behavior would be
2592-
# more difficult.
2593-
2594-
try:
2595-
np.copyto
2596-
except AttributeError:
2597-
_putmask = np.putmask
2598-
else:
2599-
def _putmask(a, mask, values):
2600-
return np.copyto(a, values, where=mask)
2601-
26022585
_lockstr = """\
26032586
LOCKERROR: matplotlib is trying to acquire the lock
26042587
{!r}

0 commit comments

Comments
 (0)