diff options
| author | Georg Brandl <georg@python.org> | 2008-11-22 13:59:47 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2008-11-22 13:59:47 +0100 |
| commit | 446729bbcd15d562ad638acd1eaf9b4e9215dd04 (patch) | |
| tree | 971332778f8e11f481706d657d6233ed84475681 /sphinx/util/jsdump.py | |
| parent | 4c5e72e306176b3b86b5681cc1fcb49a6ee14bde (diff) | |
| download | sphinx-git-446729bbcd15d562ad638acd1eaf9b4e9215dd04.tar.gz | |
Fix a bug in jsdump.
Diffstat (limited to 'sphinx/util/jsdump.py')
| -rw-r--r-- | sphinx/util/jsdump.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/util/jsdump.py b/sphinx/util/jsdump.py index 199c5e09c..3d246d0cc 100644 --- a/sphinx/util/jsdump.py +++ b/sphinx/util/jsdump.py @@ -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: |
