ba8599d
From 1f10b0b937eeb28adced360d4fa2ca76e4fe9191 Mon Sep 17 00:00:00 2001
ba8599d
From: Randy Barlow <randy@electronsweatshop.com>
ba8599d
Date: Tue, 7 Mar 2017 22:03:10 -0500
ba8599d
Subject: [PATCH] Initialize the ref_context as a dictionary.
ba8599d
ba8599d
fixes #7
ba8599d
ba8599d
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
ba8599d
---
ba8599d
 cornice/ext/sphinxext.py | 1 +
ba8599d
 1 file changed, 1 insertion(+)
ba8599d
ba8599d
diff --git a/cornice/ext/sphinxext.py b/cornice/ext/sphinxext.py
ba8599d
index fe00926..b00fb44 100644
ba8599d
--- a/cornice/ext/sphinxext.py
ba8599d
+++ b/cornice/ext/sphinxext.py
ba8599d
@@ -284,6 +284,7 @@ def rst2node(data):
ba8599d
     document.settings.rfc_references = False
ba8599d
     document.settings.character_level_inline_markup = False
ba8599d
     document.settings.env = Env()
ba8599d
+    document.settings.env.ref_context = {}
ba8599d
     parser.parse(data, document)
ba8599d
     if len(document.children) == 1:
ba8599d
         return document.children[0]
ba8599d
-- 
ba8599d
2.12.0
ba8599d