Skip to content

Commit 964ab95

Browse files
Fix DeprecationWarning about 'invalid escape sequence' in tools/docs Python scripts (#2281)
1 parent f980d76 commit 964ab95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
#'pointsize': '10pt',
239239

240240
# Additional stuff for the LaTeX preamble.
241-
'preamble': '\DeclareUnicodeCharacter{00A0}{}',
241+
'preamble': r'\DeclareUnicodeCharacter{00A0}{}',
242242

243243
# Latex figure (float) alignment
244244
#'figure_align': 'htbp',

tools/mkdoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ def process_comment(comment):
106106
result = result2
107107

108108
# Doxygen tags
109-
cpp_group = '([\w:]+)'
110-
param_group = '([\[\w:\]]+)'
109+
cpp_group = r'([\w:]+)'
110+
param_group = r'([\[\w:\]]+)'
111111

112112
s = result
113113
s = re.sub(r'\\c\s+%s' % cpp_group, r'``\1``', s)

0 commit comments

Comments
 (0)