python-modernize automated changes: fix_next

This commit is contained in:
Thomas Waldmann 2013-05-18 18:03:37 +02:00
parent 0f8c47c988
commit dcd052366b
3 changed files with 5 additions and 3 deletions

View file

@ -85,7 +85,7 @@ class TaggedJSONSerializer(object):
def object_hook(obj):
if len(obj) != 1:
return obj
the_key, the_value = obj.iteritems().next()
the_key, the_value = six.advance_iterator(obj.iteritems())
if the_key == ' t':
return tuple(the_value)
elif the_key == ' u':