Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P3K: fix DeprecationWarning under Python 3.x #2778

Merged
merged 1 commit into from Jan 12, 2013

Conversation

kmike
Copy link
Contributor

@kmike kmike commented Jan 12, 2013

The warning is:

.../site-packages/IPython/utils/jsonutil.py:121: DeprecationWarning: encodestring() is a deprecated alias, use encodebytes()
  encoded['image/png'] = encodestring(pngdata).decode('ascii')

@bfroehle
Copy link
Contributor

Looks good to me.

@takluyver
Copy link
Member

Thanks, merging now.

For future reference, we prefer you to stop your editor from cleaning up trailing whitespace - it makes the diff bigger and less clear.

takluyver added a commit that referenced this pull request Jan 12, 2013
P3K: fix DeprecationWarning under Python 3.x
@takluyver takluyver merged commit 75dc8ae into ipython:master Jan 12, 2013
@kmike
Copy link
Contributor Author

kmike commented Jan 12, 2013

OK, I'll make my editor stop cleaning whitespaces in future; thanks for the quick response.

minrk added a commit that referenced this pull request Mar 5, 2013
The warning is:

```
.../site-packages/IPython/utils/jsonutil.py:121: DeprecationWarning: encodestring() is a deprecated alias, use encodebytes()
  encoded['image/png'] = encodestring(pngdata).decode('ascii')
```
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
P3K: fix DeprecationWarning under Python 3.x
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.

None yet

3 participants