mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix a bug in jsdump.
This commit is contained in:
parent
4c5e72e306
commit
446729bbcd
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user