blob: 78373469ff34ea17d10cf4b98de4ce73bb90b3b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
From: Tomasz Buchert <tomasz@debian.org>
Date: Sun, 16 Aug 2020 12:56:51 +0200
Subject: Workaround for #963648.
---
doc/_exts/rubydomain/rubydomain.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/doc/_exts/rubydomain/rubydomain.py b/doc/_exts/rubydomain/rubydomain.py
index db35233..105467b 100644
--- a/doc/_exts/rubydomain/rubydomain.py
+++ b/doc/_exts/rubydomain/rubydomain.py
@@ -24,6 +24,9 @@ from sphinx.directives import ObjectDescription
from sphinx.util.nodes import make_refnode
from sphinx.util.docfields import Field, GroupedField, TypedField
+# NOTE(#963648): Fix for sphinx >= 3.
+l_ = _
+
# REs for Ruby signatures
rb_sig_re = re.compile(
r'''^ ([\w.]*\.)? # class name(s)
|