Bring back name overriding that was erroneously skipped as a result of type checking.

This commit is contained in:
Marica Odagaki 2013-03-06 08:19:13 +09:00
parent d4ba15d298
commit 0d0b682c8a

View File

@ -908,10 +908,10 @@ class State(object):
if key == 'names':
names.update(val)
continue
elif key == 'name':
if not isinstance(val, string_types):
# Invalid name, fall back to ID
chunk[key] = name
elif (key == 'name' and
not isinstance(val, string_types)):
# Invalid name, fall back to ID
chunk[key] = name
else:
chunk.update(arg)
if names: