From 9a9acc842aea70548fd61b7e5468551ef5c7ceb5 Mon Sep 17 00:00:00 2001 From: Jakob Lykke Andersen Date: Sat, 9 Jun 2018 12:48:19 +0200 Subject: [PATCH] C++, anon names, fix regex str/unicode complaint --- sphinx/domains/cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index ea41f81c7..59d53463f 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -6044,7 +6044,7 @@ class CPPXRefRole(XRefRole): if not has_explicit_title: # major hax: replace anon names via simple string manipulation. # Can this actually fail? - title = _anon_identifier_re.sub("[anonymous]", title) + title = _anon_identifier_re.sub("[anonymous]", str(title)) if refnode['reftype'] == 'any': # Assume the removal part of fix_parens for :any: refs.