Permalink
Browse files

Minor tweak to nbformat, still not passing test on Python 3.

  • Loading branch information...
1 parent 267e503 commit 38efc4e7bc702d5b474364f89ee7b951ff158df9 @takluyver committed Oct 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/nbformat/v2/nbjson.py
View
2 IPython/nbformat/v2/nbjson.py
@@ -28,7 +28,7 @@
class BytesEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, bytes):
- return unicode(encodestring(bytes))
+ return encodestring(obj).decode('ascii')
return json.JSONEncoder.default(self, obj)

0 comments on commit 38efc4e

Please sign in to comment.