Commits

Georg Brandl committed ee642aa

Fix a bug in jsdump.

  • Participants
  • Parent commits 61a7856

Comments (0)

Files changed (1)

File sphinx/util/jsdump.py

             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: