Skip to content

FIX: Fix for NumPy deprecation#83

Merged
mdickinson merged 1 commit into
enthought:masterfrom
larsoner:np-dep
Jan 24, 2019
Merged

FIX: Fix for NumPy deprecation#83
mdickinson merged 1 commit into
enthought:masterfrom
larsoner:np-dep

Conversation

@larsoner
Copy link
Copy Markdown
Contributor

Following the suggestion from:

  /home/larsoner/python/apptools/build/lib/apptools/persistence/state_pickler.py:661: DeprecationWarning: np.loads is deprecated, use pickle.loads instead
    result = numpy.loads(junk, encoding='bytes')

@mdickinson
Copy link
Copy Markdown
Member

LGTM. Thank you!

@mdickinson mdickinson merged commit af64aaf into enthought:master Jan 24, 2019
@mdickinson
Copy link
Copy Markdown
Member

FWIW, here's the current source of numpy.loads, making it clear that pickle.loads is a drop-in replacement: https://github.com/numpy/numpy/blob/a5cace49b79690795df29c6da3587e7a45a41591/numpy/lib/npyio.py#L38-L44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants