Fix a bug in jsdump.

This commit is contained in:
Georg Brandl 2008-11-22 13:59:47 +01:00
parent 4c5e72e306
commit 446729bbcd

View File

@ -124,7 +124,10 @@ def loads(x):
i += 1
elif c in '}]':
if key:
raise ValueError("unfinished dict")
if keys[-1] is not nothing:
raise ValueError("unfinished dict")
# empty dict
key = False
oldobj = stack.pop()
keys.pop()
if stack: