From a12f0ef8374b77a29ed52a4603e1cc1a5045c2cd Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Thu, 8 Nov 2012 19:08:07 +0100
Subject: [PATCH] =?UTF-8?q?sphinx=5Fext:=20Allow=20use=20of=20=E2=80=9Crap?=
 =?UTF-8?q?i=E2=80=9D=20module=20in=20pyeval?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This way constants like β€œrapi.RAPI_ACCESS_WRITE” can be used in
documentation.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/build/sphinx_ext.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/build/sphinx_ext.py b/lib/build/sphinx_ext.py
index 5b43d7018..3e6f3ee0f 100644
--- a/lib/build/sphinx_ext.py
+++ b/lib/build/sphinx_ext.py
@@ -62,7 +62,7 @@ COMMON_PARAM_NAMES = _GetCommonParamNames()
 
 #: Namespace for evaluating expressions
 EVAL_NS = dict(compat=compat, constants=constants, utils=utils, errors=errors,
-               rlib2=rapi.rlib2, luxi=luxi)
+               rlib2=rapi.rlib2, luxi=luxi, rapi=rapi)
 
 # Constants documentation for man pages
 CV_ECODES_DOC = "ecodes"
-- 
GitLab