mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-07-31 08:38:07 -05:00
Fix a bug in jsdump.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user