Skip to content

Commit

Permalink
Merge pull request ipython#4047 from sdrave/patch-1
Browse files Browse the repository at this point in the history
Use istype() when checking if canned object is a dict
  • Loading branch information
minrk committed Aug 16, 2013
2 parents d3320cb + 6a72b2c commit 85dc1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPython/kernel/zmq/serialize.py
Expand Up @@ -127,7 +127,7 @@ def unserialize_object(buffers, g=None):
for c in canned:
_restore_buffers(c, bufs)
newobj = uncan_sequence(canned, g)
elif isinstance(canned, dict) and len(canned) < MAX_ITEMS:
elif istype(canned, dict) and len(canned) < MAX_ITEMS:
newobj = {}
for k in sorted(canned.iterkeys()):
c = canned[k]
Expand Down

0 comments on commit 85dc1e3

Please sign in to comment.